what I want to happen is that after a button is clicked, all the divs are hidden and the selected div comes out. The prob is, setStyle doesn't seem to be working out the way it should. Can you help me out please? Thanks a lot!
here's part of the code and the output: http://i28.tinypic.com/2iqo8ie.png the html: <div class="tabs" id="tabs"> <ul id="tabSet1"> <li><a href="#" id="clicks" ><strong>clicks</ strong></a></li> <li><a href="#" id="ref" class="selected"><strong>refs</strong></a></li> <li><a href="#" id="ref2" ><strong>refs2</ strong></a></li> </ul> </div> <div class="tab" id="tabs2"> <ul class="tabs-secondary" id="tabSet2"> <li><a href="#" id="weekly" title="Weekly" >Weekly</a></li> <li><a href="#" id="monthly" title="Monthly" >Monthly</a></li> <li><a href="#" id="yearly" title="Yearly" class="selected">Yearly</a></li> </ul> </div> <br class="clear" /> <div id="results_totalref_yearly" style="display:block"> <?php func('ref','yearly'); ?> </div> <div id="results_totalref_monthly" style="display:none"> <?php func('ref','monthly'); ?> </div> <div id="results_totalref_weekly" style="display:none"> <?php func('ref','weekly'); ?> </div> Kind regards: kazuo
