Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. Drop-down menu written in Javascript not working in IE6

Drop-down menu written in Javascript not working in IE6

Scheduled Pinned Locked Moved Web Development
javascriptsecurityhelp
1 Posts 1 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    M Offline
    MayyMagdy
    wrote on last edited by
    #1

    Hi all, I have a drop down menu that's written in JS. It's working on IE7, Opera, and FireFox. But when i test it on IE6 i found that it's not working. i don't know why. there's no error occured, it just disabled. I checked security settings and aslo JS in enabled but i don't know why it doesn't work :( Here is the JS sfHover = function() { if (document.all && document.getElementById) { sfEls = document.getElementById("nav"); for (i=0; i < sfEls.childNodes.length; i++) { node = sfEls.childNodes[i]; if (node.nodeName=="LI") { node.onmouseover=function() { this.className+=" over"; this.getElementsByTagName("UL")[0].style.visibility="visible" } node.onmouseout=function() { this.className=this.className.replace(" over", ""); this.getElementsByTagName("UL")[0].style.visibility="hidden" } } } } } window.onload=sfHover;

    1 Reply Last reply
    0
    Reply
    • Reply as topic
    Log in to reply
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes


    • Login

    • Don't have an account? Register

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • World
    • Users
    • Groups