Click here to Skip to main content
15,887,267 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
I have a slight problem in the Safari browser when it comes to a tabbed menu I have created. Upon loading it seems o float the initial table on to the right side of my tabs. The only time it doesn't have the problem is on the newest mac os, with the latest browser.

I have made a test page here were you can view the problem:

http://www.kitchenova.com/testing_ep_63-1.html


That is my Javascript:
>

JavaScript
function swaptabs(itm){
itm=itm.split("#")[1];
var num=itm.match(/\d/)[0];
for(var i=1; i<=5; i++){
document.getElementById('tab'+i).parentNode.className='cold';
document.getElementById('top'+i).className='cold';}
document.getElementById('tab'+num).parentNode.className='hot';
document.getElementById('top'+num).className='hot';}




And here is what it is affecting:

HTML
<!-- clickable tab-tops -->
<table id="tabgroup" align="center" width="700px;" cellspacing="0" cellpadding="0" border="0">
<tr><th >
<table id="tabtops" width="100%" cellspacing="0" cellpadding="0" border="0" align="left">
<tr >
<th id="top1"><a href="#tab1"  önclick="swaptabs(this.href);return false"> Description
</a></th>



Any help is much appreciated.
Posted

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900