In Javascript:
<script type="text/javascript">
$(document).ready(function (){
$('html, body').animate({
scrollTop: $("#div1").offset().top
}, 2000);
});
</script>
In HTML:
<div id="div1"> </div>
<script type="text/javascript">
$(document).ready(function (){
$('html, body').animate({
scrollTop: $("#div1").offset().top
}, 2000);
});
</script>
In HTML:
<div id="div1"> </div>
No comments:
Post a Comment