Results 1 to 2 of 2

Thread: Changing tabs color

  1. #1
    Join Date
    Jan 2008
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Changing tabs color

    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.

  2. #2
    Join Date
    Aug 2004
    Posts
    10,143
    Thanks
    3
    Thanked 1,008 Times in 993 Posts
    Blog Entries
    16

    Default

    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?

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •