Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Wanet Telecoms Ltd on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

JS/CSS Problem

Status
Not open for further replies.

newmediaguy

Programmer
Mar 26, 2004
176
GB
Hi Guys

This might not be the right place for this question, if it isnt let me know and i'll find the right forum.

I have a selection of links that when i roll over them they go an alternate color,this works but what i need is for the link to stay that color when clicked and revert back to the original color when another link is clicked...?

any ideas to my very badly asked question?

Thanks



Glen
Conception | Execution
 
well, what will the link clicks be achieving? You can do this with simple css using a pseudo-element :active that will style active links differently than other links.

However, if you'll be doing other things on the page, active links lose focus. If this is the situation, you'll need to combine CSS with JavaScript.

*cLFlaVA
----------------------------
[tt]tastes great, less filling.[/tt]
[URL unfurl="true"]http://www.coryarthus.com/[/url]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top