First of all just create a function goToByScroll() and replace its id by which you want to move threw out
function goToByScroll(id){
$('html,body').animate({scrollTop: $("#"+id).offset().top},'slow');
}
and then it like below ....
<script>
goToByScroll("theIdIWantToGoTo");
</script>
function goToByScroll(id){
$('html,body').animate({scrollTop: $("#"+id).offset().top},'slow');
}
and then it like below ....
<script>
goToByScroll("theIdIWantToGoTo");
</script>
Tags:
php