1
Hello,
I am trying to add some Javascript to a theme.html file, such as stuff to make my drop-down work, but also a clock a friend of mine specifically asked to be added to his theme.
When I simply include the javascript, it doesn't get executed as far as I can see. Are there specific procedures or checks to do before adding javascript?
A simple example : I need Javascript to get my CSS drop-down menu working in Internet Explorer. The menu works in Opera and Mozilla as it is supposed to, so there isn't an error there. However, in IE it doesn't work at all. No drop-down of any kind
![](https://xoops.org/uploads/smil42e7a3ff4ceee.gif)
.
The text I included is this one :
startList = function() {
if (document.all&&document.getElementById) {
navRoot = document.getElementById("nav");
for (i=0; i<navRoot.childNodes.length; i++) {
node = navRoot.childNodes[i];
if (node.nodeName=="LI") {
node.onmouseover=function() {
this.className+=" over";
}
node.onmouseout=function() {
this.className=this.className.replace(" over", "");
}
}
}
}
}
window.onload=startList;
Any idea why this doesn't work? I included it in the HEAD part of the HTML file, and tried including it
before and
after the XOOPS javascript, to no avail.
Thank you very much,
fiammy