javascript - Keep the hover state on the last clicked menu item -
i have added nice (jquery
+ css
) navigation menu website, there's small problem. when click on menu item, light blue box jumps first item, , box stay on clicked item, have no clue how make happen.
here's example: http://jsfiddle.net/stylock/ta8g4/
in example, works how want, on website doesn't work reason. appreciated.
you add class item .selected
and in css apply same style .selected :hover
http://api.jquery.com/addclass/
or cloud modify css using jquery. first solution more flexible.
edit: use callback function add/remove class, after effect
Comments
Post a Comment