Log in

View Full Version : Changing tabs color



mattrd
01-04-2008, 04:16 PM
if you go here: http://test.4jobs.com/test/matthew/template5/index.html you can see the site i am working on. I have the tabs brought in through background images in css, and the the content changes using some javascript mixed with some css. What I need to know is, how can I keep the current tab red when you are on that section? I tried a few different scripts on my own and I can't get it to work. I'm still new at javascript and dhtml so any help would be appreciated. thank you.

ddadmin
01-05-2008, 01:35 AM
At a glance it seems your tabs already turn red when the mouse rolls over them. Why not just apply that exact style to the "selected" tab as well within the HTML, using a CSS class for example?