PDA

View Full Version : Tab Content Script help



rickyspires
03-14-2009, 08:38 PM
1) Script Title:
Tab Content Script
2) Script URL (on DD):
http://www.dynamicdrive.com/dynamicindex17/tabcontent2.htm#1
3) Describe problem:

hello i think i have finally found a script that does what i want but i have a couple of questions.

if you go to www.eventtrafik.com you can see the tab script working along to top.

at the monent i have 4 top tabs
* HOME
* EVENT PLANNER
* SERVICES & TALENT ZONE
* PROMOTERS ZONE

if i click on any of the tabs it will show the sub links under it.

how do it make it go to the desired url ant show the links for that tab automatically ???

in the top tabs code i have put the urls but the when i click on a tab nothing changes.


<ul id="tablist">
<li><a href="index.php" onClick="return expandcontent('sc1', this)">HOME</a></li>
<li><a href="planner.php" onClick="return expandcontent('sc2', this)" theme="#EAEAFF">EVENT PLANNER</a></li>
<li><a href="services.php" onClick="return expandcontent('sc3', this)" theme="#FFE6E6">SERVICES & TALENT ZONE</a></li>
<li><a href="promoters.php" onClick="return expandcontent('sc4', this)" theme="#DFFFDF">PROMOTERS ZONE</a></li>
</ul>


unless i remove the onClick="return expandcontent code but the n the sub tabs dont show when it goes to that page.

maybe it would help if i knew what the following bits of code do?

what do to following do ???
1 - class="current"
2 - onClick="return expandcontent
3 - what does the THIS do ('sc1', this)

????


ANOTHER STRANGE PROBLEM -----------

why is it that some of the text url's change colour when i mouse over and some don't ???? strange css :(




thanks
rick

Nile
03-15-2009, 12:53 AM
The version you are using is not used, and out-dated. Please check out Tab Content Script v 2.2 (http://www.dynamicdrive.com/dynamicindex17/tabcontent.htm). Once you do this, others will be able to help knowing your using an up-to-date version.