View Full Version : Default tab for Tabs Menu?

02-22-2008, 03:47 PM
1) Script Title: Tabs Menu (mouseover)

2) Script URL (on DD): http://dynamicdrive.com/dynamicindex1/tabmouseover.htm

3) Describe problem: It is not really a problem. I am adapting this nift little bit of code for my wiki. I would , however, like to have a default active tab. So rather than nothing appearing under the links (tabs) I would like the links that appear on hovering over the 'Javascript Kit' tab to be already there when I open my page. Can someone giving me some suggestions. I don't a lot of javascript but I'm not bad at adapting code if given some direction.

Hopefully you can help. Cheers,


02-22-2008, 07:52 PM
Try adding the line in red to the existing line inside the script below:

var menuobj=document.getElementById? document.getElementById("describe") : document.all? document.all.describe : document.layers? document.dep1.document.dep2 : ""

setTimeout("menuobj.innerHTML=submenu[0]", 500)

submenu[0] would correspond to the menu contents variable you wish to be shown by default.