Arci
12-15-2006, 09:58 AM
1) Script Title: Tab Content Script
2) Script URL (on DD): http://www.dynamicdrive.com/dynamicindex17/tabcontent.htm
3) Describe problem:
I have the problem that the default content is NOT expanded (first time the page is loaded) and cannot figure out why... The corresponding Tab IS highlighted but the content is not shown.
HTML code:
<ul id="maintab" class="shadetabs">
<li id="exp0a"><a href="#" rel="overview">Overview</a></li>
<li id="exp3p"><a href="#" rel="publications">Publications</a></li>
<li id="exp4p" class="selected"><a href="#" rel="events">Events</a></li>
<li id="exp5p"><a href="#" rel="recommendations">Recommendations</a></li>
<li id="exp2p"><a href="#" rel="companies">Companies</a></li>
</ul>
<div id="subline"> </div>
<script type="text/javascript">
// Start Tab Content script for UL with id="maintab" Separate multiple ids each with a comma.
initializetabcontent("maintab")
</script>
The different IDs are used to set custom background colors. The layer subline is used to display a "line" under the tabs with the same background color as the selected tab.
<div class="tabcontentstyle">
<div id="overview" class="tabcontent">
Overview content...
</div>
<div id="publications" class="tabcontent">
Tab publications content here
</div>
<div id="events" class="tabcontent">
Tab events content here
</div>
<div id="recommendations" class="tabcontent">
Tab recommendations content here
</div>
<div id="companies" class="tabcontent">
Tab companies content here...
</div>
</div>
Does anybody detect an error in above code?? Any suggestion is appreciated...
Thx in advance!
2) Script URL (on DD): http://www.dynamicdrive.com/dynamicindex17/tabcontent.htm
3) Describe problem:
I have the problem that the default content is NOT expanded (first time the page is loaded) and cannot figure out why... The corresponding Tab IS highlighted but the content is not shown.
HTML code:
<ul id="maintab" class="shadetabs">
<li id="exp0a"><a href="#" rel="overview">Overview</a></li>
<li id="exp3p"><a href="#" rel="publications">Publications</a></li>
<li id="exp4p" class="selected"><a href="#" rel="events">Events</a></li>
<li id="exp5p"><a href="#" rel="recommendations">Recommendations</a></li>
<li id="exp2p"><a href="#" rel="companies">Companies</a></li>
</ul>
<div id="subline"> </div>
<script type="text/javascript">
// Start Tab Content script for UL with id="maintab" Separate multiple ids each with a comma.
initializetabcontent("maintab")
</script>
The different IDs are used to set custom background colors. The layer subline is used to display a "line" under the tabs with the same background color as the selected tab.
<div class="tabcontentstyle">
<div id="overview" class="tabcontent">
Overview content...
</div>
<div id="publications" class="tabcontent">
Tab publications content here
</div>
<div id="events" class="tabcontent">
Tab events content here
</div>
<div id="recommendations" class="tabcontent">
Tab recommendations content here
</div>
<div id="companies" class="tabcontent">
Tab companies content here...
</div>
</div>
Does anybody detect an error in above code?? Any suggestion is appreciated...
Thx in advance!