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';}
<!-- 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>
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)