Jump to content

Smooth scroll of "id-ed" links


Wisdom
 Share

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...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...