javascript question
- Started
- Last post
- 5 Responses
- kerus
i have some simple text navigation with hover states for mouseover etc..
is there a way that OnClick it can make the nav item stay "hovered" until another navigation item is selected (then the new item becomes ON and the old one returns to its prior state)....do i make the least bit of sense?
- ikbenvanrijn0
in a way yeah.... might want to try taking out the onMouseOut part of the roll over
- stewart0
eeehr...
like this?
- kerus0
im thinking some creative css and use of layers will be quicker and easier than javascript..
oh well, thank you
- gabriel_pc0
Just create a selected class in your css and have the onclick set the clicked link to that new class.
onclick="this.className='selecte...
If you want to make it so that it can set the previously selected link back to the original style, just keep a variable with whatever the current link is and use that to turn off the old link when you select a new one. email me if this makes no sense.
- kerus0
yo gabriel, check yer email
and thanx