View Full Version : AjaxTabs link class

09-08-2008, 01:31 PM
1) Script Title: AjaxTabs

2) Script URL (on DD): http://www.dynamicdrive.com/dynamicindex17/ajaxtabscontent/

3) Describe problem:
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?!


09-08-2008, 11:37 PM
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:

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

09-09-2008, 09:21 AM
Thanks for your answer..

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