I have linked to jQuery like so <script src="http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js"></script>
and included the following script:
$(document).ready(function(){
$('.myLinkToTop').click(function () {
$('html, body').animate({scrollTop:$(document).height()}, 'slow');
return false;
});
$('.myMenuLink').click(function () {
$('html, body').animate({scrollTop:0}, 'slow');
return false;
});
})
But the script will only work in Firefox, and not Opera, Chrome or Safari. Is there anything I'm missing out?