I made a script that, when you hover the mouse, repaints each item in the menu white, and when the mouseout event returns black. However, when you hover the mouse cursor, other elements are also repainted white.
Here is the link http://test3.testkz.ru/
$("#cssmenu ul li").mouseover(function() { $(".has-sub a span").css("color", "white"); }).mouseout(function() { $(".has-sub a span").css("color", "black"); });
$(".has-sub a span")indicated that when hovering ALL spans turn white. Read about$(this)in jQuery. In general, in this case it is better to do without the css by applying the pseudo-class:hover. - DogeDev