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. DHTML, Dynamic Layers & Netscape

DHTML, Dynamic Layers & Netscape

Scheduled Pinned Locked Moved Web Development
htmldatabasetoolshelpquestion
2 Posts 2 Posters 8 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.
  • J Offline
    J Offline
    Jason Teagle
    wrote on last edited by
    #1

    Does anyone know why the following HTML file causes Netscape Communicator 4.7x to screw up? It claims to be still reading the file, but is in fact severely locked up - it has to be shut down manually using Task Manager. I apologise for the length of code, but it is the smallest snippet I can get to demonstrate the problem. <html> <head> <title>Test Page</title> </head> <body bgcolor="#FFFFFF" text="#000000"> <script language="JavaScript1.2"> var WIDTH_LOGO = 288, HEIGHT_LOGO = 64 ; function CreateLogoDiv() { var strSpeech = "\""; document.write("<LAYER "); document.writeln("ID=" + strSpeech + "divLogo" + strSpeech); document.writeln(" STYLE=" + strSpeech + "position:absolute; width:" + WIDTH_LOGO); document.writeln("; height:" + HEIGHT_LOGO + "; z-index:2;" + strSpeech + ">"); document.writeln("<IMG SRC=" + strSpeech + "halegrange_mark.gif" + strSpeech + ">"); document.writeln("</LAYER>"); } </script> Hello<BR> <script language="JavaScript1.2"> // This call below should generate the following HTML, which of course is not // visible to the user: // <LAYER ID="divLogo" STYLE="position:absolute; width:288; height:64; z-index:2;"> // <IMG SRC="some_image.gif"> // </LAYER> CreateLogoDiv(); </script> </body> </html> :(

    L 1 Reply Last reply
    0
    • J Jason Teagle

      Does anyone know why the following HTML file causes Netscape Communicator 4.7x to screw up? It claims to be still reading the file, but is in fact severely locked up - it has to be shut down manually using Task Manager. I apologise for the length of code, but it is the smallest snippet I can get to demonstrate the problem. <html> <head> <title>Test Page</title> </head> <body bgcolor="#FFFFFF" text="#000000"> <script language="JavaScript1.2"> var WIDTH_LOGO = 288, HEIGHT_LOGO = 64 ; function CreateLogoDiv() { var strSpeech = "\""; document.write("<LAYER "); document.writeln("ID=" + strSpeech + "divLogo" + strSpeech); document.writeln(" STYLE=" + strSpeech + "position:absolute; width:" + WIDTH_LOGO); document.writeln("; height:" + HEIGHT_LOGO + "; z-index:2;" + strSpeech + ">"); document.writeln("<IMG SRC=" + strSpeech + "halegrange_mark.gif" + strSpeech + ">"); document.writeln("</LAYER>"); } </script> Hello<BR> <script language="JavaScript1.2"> // This call below should generate the following HTML, which of course is not // visible to the user: // <LAYER ID="divLogo" STYLE="position:absolute; width:288; height:64; z-index:2;"> // <IMG SRC="some_image.gif"> // </LAYER> CreateLogoDiv(); </script> </body> </html> :(

      L Offline
      L Offline
      Lost User
      wrote on last edited by
      #2

      Not sure if this will help, but Netscape is a little flaky when you do multiple document.write's. You might want to have a single string containing the layer html and call document.write() once.

      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