I am trying to establish jQuery easing in my Wordpress template so that I might have some cool scrolling effects to div id's further down the page. I've done this before using plain HTML, but I'm a little confused as to how I might establish this with Wordpress' navigation function. Here's the code I've used in the past. Any help on how I can retrofit it is greatly appreciated.
<script src="../js/jquery.min.js"></script>
<script>
function goToByScroll(id){
jQuery('html,body').animate({scrollTop: jQuery("#"+id).offset().top},900);
return false;
}
*/Function/*
<script>function goToByScroll(id){ $('html,body').animate({scrollTop: $("#"+id).offset().top},900); return false; }</script>
*/Nav Link/*
<li><a onclick="goToByScroll('div1')" href="javascript:void(0)" href="#">Link 1</a></li>