Results 1 to 2 of 2

Thread: Tab for current page ?

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

    Default Tab for current page ?

    Hi all,
    New on this good looking Forum!
    I am using the Glowing tabs menu: http://www.dynamicdrive.com/style/cs...ing-tabs-menu/
    but the tab of the page I'm on won't stay in the "#current" state.
    How to solve this ?
    Thanks

    Part of the code:
    HTML Code:
    <style type="text/css">
    #glowingtabs #current a{ /*Selected Tab style*/
    background-position:0 -82px; /*Shift background image up to start of 2nd tab image*/
    }
    
    #glowingtabs #current a span{ /*Selected Tab style*/
    background-position:100% -82px; /*Shift background image up to start of 2nd tab image*/
    color: black;
    }
    </style>
    
    <div id="glowingtabs">
    <ul>
    <li><a href="http://www.hv-service.nl" title="Home"><span>Home</span></a></li>
    <li><a href="http://www.dynamicdrive.com/style/" title="CSS Library"><span>CSS Codes</span></a></li>
    <li><a href="http://www.dynamicdrive.com/forums/" title="Help Forums"><span>Forums</span></a></li>
    <li><a href="http://tools.dynamicdrive.com" title="Webmaster Tools"><span>Tools</span></a></li>
    <li><a href="http://www.javascriptkit.com/jsref/" title="JavaScript tutorials and scripts"><span>JavaScript</span></a></li>
    </ul>
    </div>
    <br style="clear: left;" />
    I also should say perhaps that I use a topframe (where the menu is in) and a second mainframe.
    Is is possible to set the active page as the current and so show the related tab with the #current class ?
    Last edited by pookie62; 06-05-2008 at 07:04 PM. Reason: Adding some code to clearify

  2. #2
    Join Date
    Jun 2008
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Never mind, solved it by removing the topframe

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
  •