I can think of a way of doing what you asked with some event management. The events I would mess with to get things to work would be mousedown, mouseup, mouseover, and mouseout.
On May 21, 12:27 pm, thegdog <[email protected]> wrote: > Should have mentioned that I am using Prototype version 1.6.0.2. > > On May 21, 12:22 pm, thegdog <[email protected]> wrote: > > > > > > > Is there a way to change the :active state of elements through > > Prototype? > > > Here's the basic gist of what I am doing it: > > I have a navigation menu, made up of <li> tags with <a> links inside. > > When the user hovers over one of the <li> tags, a different background > > is applied to the <li>. When the user clicks on one of the <li> tags, > > a different background is applied to the <li>. > > > It is possible for a user to click one of the <li> tags, then decide > > he doesn't want to go to that link, and then drags off the <li> before > > releasing the mouse. This leaves the <li> in its active state (with > > the active background applied). I wanted to use Prototype so that > > when a user moves his mouse over one of the other <li> tags, it will > > remove the active state from the one clicked. > > > Is that possible? > > > Thanks for any information you can provide. > > > -- > > You received this message because you are subscribed to the Google Groups > > "Prototype & script.aculo.us" group. > > To post to this group, send email to > > [email protected]. > > To unsubscribe from this group, send email to > > [email protected]. > > For more options, visit this group > > athttp://groups.google.com/group/prototype-scriptaculous?hl=en. > > -- > You received this message because you are subscribed to the Google Groups > "Prototype & script.aculo.us" group. > To post to this group, send email to [email protected]. > To unsubscribe from this group, send email to > [email protected]. > For more options, visit this group > athttp://groups.google.com/group/prototype-scriptaculous?hl=en. -- You received this message because you are subscribed to the Google Groups "Prototype & script.aculo.us" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/prototype-scriptaculous?hl=en.
