Author: James25 | Posted on: 11/14/2009 1:13:35 PM | Views : 378

Hi! I have a jquery function that was written by someone else to animate a menu list....I am new to jquery..and trying to fugure out how to make this function run only the first time the page load...not on every load...right it works on everytime the page load..Thanks
$(list_elements).each(function(i) { $(this).css("margin-left", "-180px"); timer = (timer * multiplier + time); $(this).animate({ marginLeft: "0" }, timer); $(this).animate({ marginLeft: "15px" }, timer); $(this).animate({ marginLeft: "0" }, timer); });
 
...

Go to the complete details ...