Help with Error: Object required

Discussion in 'HTML & Website Design' started by fotoviva, Aug 13, 2008.

  1. #1
    Just finished a website and now find out IE throws up an error on every page!

    Site in question is www.jcsys.co.uk and it says Error: Object required Code:0

    I can't figure out what is wrong so was hoping someone here could help?!
     
    fotoviva, Aug 13, 2008 IP
  2. fotoviva

    fotoviva Active Member

    Messages:
    265
    Likes Received:
    10
    Best Answers:
    0
    Trophy Points:
    60
    #2
    ok it seems the error is with the javascript menu, so unfortunately I'm in the wrong forum section now!

    <script type="text/javascript" src="drop_down.js"></script>
    was calling in the code which was:

    startList = function() {
    if (document.all&&document.getElementById) {
    navRoot = document.getElementById("nav");
    for (i=0; i<navRoot.childNodes.length; i++) {
    node = navRoot.childNodes;
    if (node.nodeName=="LI") {
    node.onmouseover=function() {
    this.className+=" over";
    }
    node.onmouseout=function() {
    this.className=this.className.replace(" over", "");
    }
    }
    }
    }
    }
    window.onload=startList;

    Perhaps a moderator can move this for me unless anyone can work it out here?
     
    fotoviva, Aug 13, 2008 IP