IE6 gives me an error on a page.
It says "menuitem.1.div is null or not an object'.
What does this mean and more importantly how do I fix it? It is my site.
http://www.simsarchive.jumbahost.com/template.php
"<script type="text/javascript">
/*<![CDATA/
<!--
var time = 3000;
var numofitems = 7;
function menu(allitems,thisitem,startstate)* {
callname= "gl"+thisitem;
divname="subglobal"+thisitem;
this.numberofmenuitems = allitems;
this.caller = document.getElementById(callname);*
this.thediv = document.getElementById(divname);
this.thediv.style.visibility = startstate;
}
function ehandler(event,theobj){
for (var i=1; i<= theobj.numberofmenuitems; i++){
var shutdiv =eval( "menuitem"+i+".thediv");
shutdiv.style.visibility="hidden";*
}
theobj.thediv.style.visibility="vi* sible";
}
function closesubnav(event){
if ((event.clientY <48)||(event.clientY > 107)){
for (var i=1; i<= numofitems; i++){
var shutdiv =eval('menuitem'+i+'.thediv');
shutdiv.style.visibility='hidden';*
}
}
}
// -->
/]>*/
</script>"
So what do I need to add/remove to the above code to fix the error?
It says "menuitem.1.div is null or not an object'.
What does this mean and more importantly how do I fix it? It is my site.
http://www.simsarchive.jumbahost.com/template.php
"<script type="text/javascript">
/*<![CDATA/
<!--
var time = 3000;
var numofitems = 7;
function menu(allitems,thisitem,startstate)* {
callname= "gl"+thisitem;
divname="subglobal"+thisitem;
this.numberofmenuitems = allitems;
this.caller = document.getElementById(callname);*
this.thediv = document.getElementById(divname);
this.thediv.style.visibility = startstate;
}
function ehandler(event,theobj){
for (var i=1; i<= theobj.numberofmenuitems; i++){
var shutdiv =eval( "menuitem"+i+".thediv");
shutdiv.style.visibility="hidden";*
}
theobj.thediv.style.visibility="vi* sible";
}
function closesubnav(event){
if ((event.clientY <48)||(event.clientY > 107)){
for (var i=1; i<= numofitems; i++){
var shutdiv =eval('menuitem'+i+'.thediv');
shutdiv.style.visibility='hidden';*
}
}
}
// -->
/]>*/
</script>"
So what do I need to add/remove to the above code to fix the error?





