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

Creating a frames-based page with a

Status
Not open for further replies.

daminion

Programmer
Nov 6, 2002
2
US
Creating a frames-based page with a left side navigational frame. I have the frame setup with table cells that change color as you mouse over the items, all done through CSS instead of images because the items will change often. Inside the cells are links.

I'm trying to figure out if it's possible to change the background of a table cell after a user clicks a link within the table cell. Can you tie an onClick event to a CSS and trigger the background color change?

The links all target the main "right" frame, so I don't need to refresh the whole frameset after a click (however I could if needed).

Thanks!



 
after reading my own post i figured i should elaborate.

basically what i'm trying to do is create this navigational frame in such a way that as a user clicks each item, the background will highlight the last clicked item (by changing the cell's background color).... giving them a visual representation of where they are in the navigational structure.

i could do it easily with images, however i'd end up with hundreds of pages... something i'm hoping to avoid.
 
have you tried using the Vlink, Alink attributes to modify the effects? I may not be seeing the problem accurately. THe other thing you could do is an OnClick event using VBScript or JavaScript. Use anchors and id's and/or names to set your element properties.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top