Wisdom Posted February 19, 2011 Share Posted February 19, 2011 So.. it's pretty obvious, how can make all the id-ed links scroll smoothly in any direction.. obviously using jQuery Link to comment Share on other sites More sharing options...
dsonesuk Posted February 19, 2011 Share Posted February 19, 2011 Are you talking about ul menu listing, then you would use something similar to below. Its tad, difficult to give advise without any code showing what type of menu you are using.$(document).ready(function () { $('li#myidref').hover( function () { //show its submenu $('ul' this).slideDown(500); }, function () { //hide its submenu $('ul' this).slideUp(300); } ); }); </script> Link to comment Share on other sites More sharing options...
thescientist Posted February 19, 2011 Share Posted February 19, 2011 If you're trying to move a bunch of elements simultaneously, you could give them all the same class, even if it's just in name only, so that you can use getElementsByClassName. Link to comment Share on other sites More sharing options...
Wisdom Posted March 6, 2011 Author Share Posted March 6, 2011 So sorry for the late reply, but I have found the script I was looking for.Thanks anyway Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.