Nope, not quite what I was looking for.
I want the one that is selected (page that you are on e.g. Home) to stay selected when one hovers over it, and the others to show a hover and then change back to the unselected state, but the one that is selected (page you are on) to stay selected. victorg-2 wrote: > > > Maybe you should switch it to make use of the mouseover event only, > and on mouseover change all menu items to off status and set the > curret one to on? > > $(".nav a img").mouseover(function() { > // clear all menu items with _on img > $(".nav a img").each(function(){ > var src = $(this).attr("src"); > if(src.indexOf("_on") != -1) > { > $(this).attr("src", src.replace("_on.png", > ".png")); > } > }); > // set current menu item to "on" > var src = $(this).attr("src"); > $(this).attr("src", src.replace(".png", "_on.png")); > }); > -- View this message in context: http://www.nabble.com/Menu-Hover-and-Selected-tp22999583s27240p23000987.html Sent from the jQuery General Discussion mailing list archive at Nabble.com.