How can I return a link to an active state after mouseout?

Posted by Craig on Stack Overflow See other posts from Stack Overflow or by Craig
Published on 2010-05-23T20:51:04Z Indexed on 2010/05/23 21:01 UTC
Read the original article Hit count: 266

var menuEnter = { 'color': hoverColor};
var menuLeave = { 'color': 'C0C0C0'};

new ('div#menu a.level1 span.bg', menuEnter, menuLeave,
{ transition: Fx.Transitions.linear, duration: 200 },
{ transition: Fx.Transitions.sineIn, duration: 500 });

I would like the active menu color to not be affected by the mouseleave var.

Thank you.

© Stack Overflow or respective owner

Related posts about JavaScript

Related posts about javascript-events