hugh
07-27-2009, 01:53 PM
Tab Content Script
http://www.dynamicdrive.com/dynamicindex17/tabcontent.htm
I've got this up and working nicely, great script. But I'm mystified by one thing....
The instructions/ code say links between the tabs should be written thus:
<li><a href="#" rel="tcontent2">Tab 2</a></li>
so, at the bottom of the contents of one of my tabs I added a link to go straight to the next tab (because the scroll means the tabs have gone out of view):
<li><a href="#" rel="tcontent2">Next...</a></li>
But this link doesn't go to the next tab at all, it just goes to the top of the page, and the page still displays tab 1 and its contents (the 'selected' tab)
Why does the link not work? The link code and destination is exactly the same, only the link text is changed?
Mystified....!
Hugh
http://www.dynamicdrive.com/dynamicindex17/tabcontent.htm
I've got this up and working nicely, great script. But I'm mystified by one thing....
The instructions/ code say links between the tabs should be written thus:
<li><a href="#" rel="tcontent2">Tab 2</a></li>
so, at the bottom of the contents of one of my tabs I added a link to go straight to the next tab (because the scroll means the tabs have gone out of view):
<li><a href="#" rel="tcontent2">Next...</a></li>
But this link doesn't go to the next tab at all, it just goes to the top of the page, and the page still displays tab 1 and its contents (the 'selected' tab)
Why does the link not work? The link code and destination is exactly the same, only the link text is changed?
Mystified....!
Hugh