Welcome aboard! We are happy you are here and wish you good net-raft!
<!DOCTYPE html>
<html>
<head>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
<script>
$(document).ready(function () {
$(window).scroll(function(){
$("#div1").stop().animate({"marginTop": ($(window).scrollTop()) + "px", "marginLeft":($(window).scrollLeft()) + "px"}, "slow" );
});
var yourtext = "";
for (var i = 0; i < 100; i++)
{
yourtext += "scroll!<br />";
}
$("#div2").html(yourtext);
});
</script>
<style>
#div1
{
background-color: #ffd800;
width: 100%;
height: 50px;
line-height: 50px;
position:
absolute;
top: 0;
left: 0;
}
</style>
</head>
<body>
<div id="div1">Hello World!</div>
<div id="div2"></div>
</body>
</html>
The most helpful JQUERY solutions
plugin get client ip address using jqueryJQUERY Click to see more ... 10.5K 1.8K