JMo
03-27-2008, 06:49 PM
1) Script Title: Tab Content Script (v 2.1)
2) Script URL (on DD): http://www.dynamicdrive.com/dynamicindex17/tabcontent.htm
3) Describe problem: Script is working very well, except the link that is designated with the "selected" class is not being used as default when the page loads. Instead the 1st tab always shows.
URL to my site: Quarterlives (http://www.quarterlives.com/) (It's the section with "WTF," "10," and "WWW")
Code for the links:
<div class="tabbuttons">
<div id="countrytabs">
<a id="wtf" href="#" rel="country1"> </a>
<a id="topten" href="#" rel="country2" class="selected"> </a>
<a id="www" href="#" rel="country3"> </a>
</div>
</div>
I have tried adding "linkparent" to "countries.setselectedClassTarget" in the code just under the tab content containers - then adding divs around the tab links, with one having the "selected" class. It did not work. Is there anything I'm missing, and how can I get the "selected" functionality to work?
2) Script URL (on DD): http://www.dynamicdrive.com/dynamicindex17/tabcontent.htm
3) Describe problem: Script is working very well, except the link that is designated with the "selected" class is not being used as default when the page loads. Instead the 1st tab always shows.
URL to my site: Quarterlives (http://www.quarterlives.com/) (It's the section with "WTF," "10," and "WWW")
Code for the links:
<div class="tabbuttons">
<div id="countrytabs">
<a id="wtf" href="#" rel="country1"> </a>
<a id="topten" href="#" rel="country2" class="selected"> </a>
<a id="www" href="#" rel="country3"> </a>
</div>
</div>
I have tried adding "linkparent" to "countries.setselectedClassTarget" in the code just under the tab content containers - then adding divs around the tab links, with one having the "selected" class. It did not work. Is there anything I'm missing, and how can I get the "selected" functionality to work?