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. JavaScript Menu does not work in Netscape

JavaScript Menu does not work in Netscape

Scheduled Pinned Locked Moved Web Development
javascripthtmldata-structurestoolsquestion
3 Posts 3 Posters 5 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
    Maureen
    wrote on last edited by
    #1

    Can anyone tell me why this wouldn't work in Netscape? <HEAD> <TITLE>Menu</TITLE> <base target="main"> <style> <!-- #foldheader{cursor:hand ; list-style-image: url(../Images/a_down.gif)} #foldinglist{list-style-image: url(../Images/a_right.gif)} //--> </style> <script language="JavaScript"> <!-- var head="display:''" img1=new Image() img1.src="down.gif" img2=new Image() img2.src="right.gif" function change(){ if(!document.all) return if (event.srcElement.id=="foldheader") { var srcIndex = event.srcElement.sourceIndex var nested = document.all[srcIndex+1] if (nested.style.display=="none") { nested.style.display='' event.srcElement.style.listStyleImage="url(../Images/a_up.gif)" } else { nested.style.display="none" event.srcElement.style.listStyleImage="url(../Images/a_down.gif)" } } } document.onclick=change //--> </script> </HEAD> <BODY BGCOLOR="#007B00" text="#FFFFFF" link="orange" alink="lightgreen" vlink="black"> <div align="left"> <li id="foldheader">Family Tree</li> <ul id="foldinglist" style="display:none"> <li><a href="alpha.html">Alphabetical</a></li> <li><a href="James1855.html">Tree Top</a></li> <li><a href="tree.html">Tree Chart</a></li> </ul> <li id="foldheader">Name</li> <ul id="foldinglist" style="display:none"> <li><a href="name.html" target="main">History</a></li> </ul> <li id="foldheader">Ireland</li> <ul id="foldinglist" style="display:none"> <li><a href="ireland.html">Visit Ireland</a></li> </ul> <li id="foldheader">Miscellaneous</li> <ul id="foldinglist" style="display:none"> <li><a href="thanks.html" target="main">Thank You</a></li> <li><a href="form.html" target="_parent">Submit Info</a></li> <li><a href="links.html">Sites to Visit</a></li> </ul> </div> </BODY>

    C 1 Reply Last reply
    0
    • M Maureen

      Can anyone tell me why this wouldn't work in Netscape? <HEAD> <TITLE>Menu</TITLE> <base target="main"> <style> <!-- #foldheader{cursor:hand ; list-style-image: url(../Images/a_down.gif)} #foldinglist{list-style-image: url(../Images/a_right.gif)} //--> </style> <script language="JavaScript"> <!-- var head="display:''" img1=new Image() img1.src="down.gif" img2=new Image() img2.src="right.gif" function change(){ if(!document.all) return if (event.srcElement.id=="foldheader") { var srcIndex = event.srcElement.sourceIndex var nested = document.all[srcIndex+1] if (nested.style.display=="none") { nested.style.display='' event.srcElement.style.listStyleImage="url(../Images/a_up.gif)" } else { nested.style.display="none" event.srcElement.style.listStyleImage="url(../Images/a_down.gif)" } } } document.onclick=change //--> </script> </HEAD> <BODY BGCOLOR="#007B00" text="#FFFFFF" link="orange" alink="lightgreen" vlink="black"> <div align="left"> <li id="foldheader">Family Tree</li> <ul id="foldinglist" style="display:none"> <li><a href="alpha.html">Alphabetical</a></li> <li><a href="James1855.html">Tree Top</a></li> <li><a href="tree.html">Tree Chart</a></li> </ul> <li id="foldheader">Name</li> <ul id="foldinglist" style="display:none"> <li><a href="name.html" target="main">History</a></li> </ul> <li id="foldheader">Ireland</li> <ul id="foldinglist" style="display:none"> <li><a href="ireland.html">Visit Ireland</a></li> </ul> <li id="foldheader">Miscellaneous</li> <ul id="foldinglist" style="display:none"> <li><a href="thanks.html" target="main">Thank You</a></li> <li><a href="form.html" target="_parent">Submit Info</a></li> <li><a href="links.html">Sites to Visit</a></li> </ul> </div> </BODY>

      C Offline
      C Offline
      Chris Maunder
      wrote on last edited by
      #2

      Netscape 4 doesn't support the display style. Or a bunch of other things :mad: cheers, Chris Maunder

      S 1 Reply Last reply
      0
      • C Chris Maunder

        Netscape 4 doesn't support the display style. Or a bunch of other things :mad: cheers, Chris Maunder

        S Offline
        S Offline
        Santosh Rao
        wrote on last edited by
        #3

        I hate Netscape, but have to Support it

        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