I don't see any headers in that. I already adapted one script to do this sort of thing (see archived thread):
http://www.dynamicdrive.com/forums/a...hp/t-2800.html
Refers to script:
http://www.dynamicdrive.com/dynamicindex1/navigate1.htm
As the archives remove code formatting, here are my instructions for the above script reformatted:
Change this line in the script:
Code:
cur=ns6? e.target : event.srcElement
to:
Code:
cur=ns6? e : event.srcElement
and get rid of these two lines:
Code:
if (ie4||ns6)
document.onclick=checkcontained
Now, the html markup has to change, where it once looked like this:
HTML Code:
<li id="foldheader">News</li>
make it look like this:
HTML Code:
<li id="foldheader"><span onmouseOver="checkcontained(this.parentNode)">News</span></li>
Make this change only for those li's that have the foldheader id. That's all there is to it. I have a feeling you will either want further modifications though, or decide that onclick wasn't so bad after all.
One other thing I left out but, it is only to allow it to degrade more gracefully in browsers that do not support its features. These lines should be added:
Code:
if (!(ie4||ns6))
return;
right after this line:
Code:
function checkcontained(e){
Bookmarks