• My site is working fine, but now I want to do something about the html-errors. In IE there’s a errornote on the pages saying:
    document. get element bij ID (…)’ is empty or there is no object, suckerfish_ie.js.

    This is the code:

    <!--//--><![CDATA[//><!--
    sfHover = function() {
    var sfEls = document.getElementById("suckerfishnav").getElementsByTagName("LI");
    for (var i=0; i<sfEls.length; i++) {
    sfEls[i].onmouseover=function() {
    this.className+=" sfhover";
    }
    sfEls[i].onmouseout=function() {
    this.className=this.className.replace(new RegExp(" sfhover\\b"), "");
    }
    }
    }
    if (window.attachEvent) window.attachEvent("onload", sfHover);//--><!]]>

    What can I do about this?

    Thanks.

Viewing 1 replies (of 1 total)
  • Thread Starter roeliezorg

    (@roeliezorg)

    Problem solved. Changed code:
    `/*<![CDATA[/*
    sfHover = function() {
    var sfEls = document.getElementById(“suckerfishnav”).getElementsByTagName(“LI”);
    for (var i=0; i<sfEls.length; i++) {
    sfEls[i].onmouseover=function() {
    this.className+=” sfhover”;
    }
    sfEls[i].onmouseout=function() {
    this.className=this.className.replace(new RegExp(” sfhover\\b”), “”);
    }
    }
    }
    if (window.attachEvent) window.attachEvent(“onload”, sfHover);/*//]]>*/.

    I love plugins, but find out that I’m busy to get my site through w3c, because lot of the plugins give trouble. Is there a way to change this more easily?

Viewing 1 replies (of 1 total)
  • The topic ‘suckerfish and IE’ is closed to new replies.