Register

If this is your first visit, please click the Sign Up now button to begin the process of creating your account so you can begin posting on our forums! The Sign Up process will only take up about a minute of two of your time.

Results 1 to 2 of 2
  1. #1
    Member
    Join Date
    Aug 2006
    Posts
    67
    Member #
    13752
    Hi there i am having a problem with the "suckerfish" drop down menu.
    when i test the menu on IE 5.2 (mac) the screen goes blank.
    The problem is with the javscript code...

    Code:
    <script type="text/javascript"><!--//--><![CDATA[//><!--
    startList = function() {
    if (document.all&&document.getElementById) {
    navRoot = document.getElementById("mainlevel");
    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;
    //--<!]]></script>
    when i remove this code the site loads only the drop down obviously doesnt work!

    Does anyone know if there is anything i can do about this?
    Also when i test the site on IE 7 (pc) the screen does not go blank only the drop down doesnt work!
    If anyone fancies having a look the address is... http://synthsoundz.com/prime_languages/

    Im a bit baffled by this.

    Thanks.

  2.  

  3. #2
    Senior Member tonyf12's Avatar
    Join Date
    Mar 2007
    Posts
    132
    Member #
    14998
    You can try look at htmldogs version.. This works in IE7:

    Code:
    sfHover = function() {
        var sfEls = document.getElementById("nav").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);
    http://htmldog.com/articles/suckerfi...le/bones1.html


Remove Ads

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
All times are GMT -6. The time now is 10:26 PM.
Powered by vBulletin® Version 4.2.3
Copyright © 2019 vBulletin Solutions, Inc. All rights reserved.
vBulletin Skin By: PurevB.com