Hi, I am using the below function to scroll to sections on a menu. It works but I need the links that activate the scrollto to still be links to pages. If I change "return false;" to "return true;" this links to the pages but the scrollto function does not work. Is there anyway it can do both?
Many thanks in advance for your help.
$(function(){ var $pane = $('#scroll-pane'); $pane.jScrollPane({animateTo:true}); $('a#scroll-to').bind( 'click', function(){ var targetElementSelectorString = $(this).attr('rel'); $pane[0].scrollTo(targetElementSelectorString); return false; } ); });
I have implemented the kwicks for jquery which works quite well when I have the "sticky" attribute to true. However, I need to have this turned off so that all the expandable elements are closed on page load. My problem is, I can't get the elements that activate the expansion all have gaps and I need them to sit side by side without any spacing. I have tried changing everything to try and remove these gaps ebtwen the elements. Anyone got any odeas what Im doing wrong? I based my code on example 7 on this page http://www.jeremymartin.name/projects.php?project=kwicks