Hi,
I am having trouble with two sets of tabs using on the same page. I control both sets of tabs with the show() method in javascript with this code:
The test site is here so you can view source :
The bottom set of tabs works great, but when you click the first set of tabs it doubles up the tabs and removes the bottom set of tabs each time.
I don't want to switch the page the user is on when I click any of the tabs, so that's why I am using javascript.
I have added a line ".......1st script below this line......" in the code so when viewing source its easy to find where my 1st set of <script> tags are. The second <script> tag is at the very bottom of the page in the view source.
Any help is appreciated, this is really getting under my skin! haha, sorry I'm not much of a javascript guy, and I may be making a really silly mistake...
Thanks.
I am having trouble with two sets of tabs using on the same page. I control both sets of tabs with the show() method in javascript with this code:
Code:
<script>
var shown = document.getElementById('top1');
function show(id) {
if (shown) shown.style.display = 'none';
shown = document.getElementById(id);
shown.style.display = 'block';
return false;
}
</script>
The test site is here so you can view source :
The bottom set of tabs works great, but when you click the first set of tabs it doubles up the tabs and removes the bottom set of tabs each time.
I don't want to switch the page the user is on when I click any of the tabs, so that's why I am using javascript.
I have added a line ".......1st script below this line......" in the code so when viewing source its easy to find where my 1st set of <script> tags are. The second <script> tag is at the very bottom of the page in the view source.
Any help is appreciated, this is really getting under my skin! haha, sorry I'm not much of a javascript guy, and I may be making a really silly mistake...
Thanks.