Jump to content

Smooth scroll of "id-ed" links


Wisdom

Recommended Posts

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

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

  • 3 weeks later...

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...