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