Using the demo 'right out of the box' with the optional persistence feature, add to the '#tablist li' style declaration so it looks like this:
Code:
#tablist li{
list-style: none;
display: inline;
margin: 0;
position:relative;
}
Then in the script where it says:
Code:
tabobjlinks[i].style.backgroundColor=initTabcolor
add these two lines beneath that line:
Code:
for (i=0; i<tabobjlis.length; i++)
tabobjlis[i].style.top=0
then below this line:
Code:
aobject.style.backgroundColor=document.getElementById("tabcontentcontainer").style.backgroundColor=themecolor
add this one:
Code:
aobject.parentNode.style.top='1px'
Finally, below this line:
Code:
tabobjlinks=tabobj.getElementsByTagName("A")
add this one:
Code:
tabobjlis=tabobj.getElementsByTagName("li")
Bookmarks