Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 6 of 6
  1. #1
    New to the CF scene
    Join Date
    Oct 2004
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    IE and Mozilla difficulties

    ok i wrote my menu code and u gave it style in a css file but the menu doesnt expand in IE only in MZ. i included both my .css txt and my html txt so people can tell me if i did a boo boo
    Attached Files Attached Files

  • #2
    Senior Coder gsnedders's Avatar
    Join Date
    Jan 2004
    Posts
    2,340
    Thanks
    1
    Thanked 7 Times in 7 Posts
    Bugs in IE, only way to get around is to use Javascript...

  • #3
    New to the CF scene
    Join Date
    Oct 2004
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts
    i did try java script i used this "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;
    and linked it with "<ul id="nav">"

  • #4
    Senior Coder gsnedders's Avatar
    Join Date
    Jan 2004
    Posts
    2,340
    Thanks
    1
    Thanked 7 Times in 7 Posts
    You don't link Javascript in CSS

  • #5
    New to the CF scene
    Join Date
    Oct 2004
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts
    oo my bad then umm is there any way you could help me with my java then and getting it to work in IE bc mozilla wont play the sound i have on it but IE does but then again IE doesnt do my drop menu correct and MZ does.. but yea could u mabe take a look at it and tell me where i went wrong im new

  • #6
    Senior Coder gsnedders's Avatar
    Join Date
    Jan 2004
    Posts
    2,340
    Thanks
    1
    Thanked 7 Times in 7 Posts
    In the head of your (X)HTML document put this:
    Code:
    <!--[if IE]>
    <script type="text/javascript">
    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", "");
    }
    }
    }
    }
    </script>
    <![endif]-->


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •