I am currently trying to implement: http://wiki.wordpress.org/Tabbed Sidebar However, it does not seem to show #1 tab as default. Ie. when I load the page I need to click a tab before any content is displayed from tab1. I believe there needs to be a change somewhere where the red text is so its shown by default and does not require the onclick action before being displayed: <ul id="tabs"> [COLOR="Red"]<li class="tab" id="tab1" onclick="switchOn(1);">[/COLOR]Tab 1</li> <li class="tab" id="tab2" onclick="switchOn(2);">Tab 2</li> <li class="tab" id="tab3" onclick="switchOn(3);">Tab 3</li> <li class="tab" id="tab4" onclick="switchOn(4);">Tab 4</li> <li class="tab" id="tab5" onclick="switchOn(5);">Tab 5</li> </ul> Code (markup): Any help appreciated. Thanks!
simply put on the <body> tag the javascript call. IE if you have now <body> replace with <body onLoad="switchOn(1);"> that should make tab1 appear when the body loads
DatR, Thanks man! I will try it out and report back if I have any problems Cant wait to show the finished product Best, Iv
Programmer recently made some updates to the code (I am still learning) but here is a sample: http://www.flixya.com/university-of-california-at-santa-cruz