Results 1 to 3 of 3

Thread: AjaxTabs link class

  1. #1
    Join Date
    Aug 2007
    Posts
    5
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default AjaxTabs link class

    1) Script Title: AjaxTabs

    2) Script URL (on DD): http://www.dynamicdrive.com/dynamici...axtabscontent/

    3) Describe problem:
    Hallo,
    I'm trying to use AjaxTabs..
    My problem is that I have to use different css class for my links, and i'm not able.
    With this code:

    <a href="pag1.html" rel="contenitore" class="class1">

    <a href="pag2.html" rel="contenitore" class="class2">

    always I see the links as "class1".
    What can I do?!

    thanks!

  2. #2
    Join Date
    Aug 2004
    Posts
    9,902
    Thanks
    3
    Thanked 967 Times in 955 Posts
    Blog Entries
    15

    Default

    Yep, the script currently will overwrite any CSS class names you define within each tab, since what it does is assign the currently selected tab a class of ".selected", and those that aren't a blank class "". Until I have time to update this script to not be intrusive like this, the only quick way to overcome this is to disable the "highlight current selected tab" feature, by commenting out the below line inside the .js file:

    Code:
    //this.getselectedClassTarget(this.tabs[i]).className=(this.tabs[i].getAttribute("href")==tabref.getAttribute("href"))? "selected" : ""
    DD Admin

  3. #3
    Join Date
    Aug 2007
    Posts
    5
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Thanks for your answer..

    but, in this way, can I show as selected in css my selected tab? It still will works?

    thanks!

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
  •