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 derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Css Rollovers which stay rolled over when clicked

Status
Not open for further replies.

aaronjonmartin

Technical User
Jul 9, 2002
475
GB
Ok guys bear with me as i attempt to explain this one.

I have successfully created some rollover buttons with css for the navigation of my website. However when the link is clicked and the new page is loaded the buttons are all the default un-hovered colour. I would like to keep the button i clicked which corresponds to the page im viewing to stay the colour that the rollover is. Anybody got any advice or links to tutorials that may help?

Hope it makes sense and thanks for any help in advance

Aaron

"It's so much easier to suggest solutions when you don't know too much about the problem."
Malcolm Forbes (1919 - 1990)
 
good idea and thanks for the suggestion however the difficult part is im using an include file (.ascx) to display my navigation in the page. Not sure how i could do it with the same nav being displayed on every page.

"It's so much easier to suggest solutions when you don't know too much about the problem."
Malcolm Forbes (1919 - 1990)
 
What sort of file is a .ascx file? If it's .Net, then you should be able to use server-side scripting to dynamically change the class of the selected item, I would have thought.

Dan


[tt]Dan's Page [blue]@[/blue] Code Couch
[/tt]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top