|
Guest -> Why won't this script work with AOL browser? (4/4/2001 17:02:00)
|
I am using the following script to click on a thumbnail picture and have a new window open the full picture. It works fine in IE and Netscape, but will not work in AOL's browser. I realize AOL is a POS and most of you hate it, but I would like to support it on my site. Any ideas or other scripts that will accomplish the same thing would be greatly appreciated. <SCRIPT LANGUAGE="JavaScript"> <!-- function OpenNewWindow(cPicture,nWidth,nHeight,cMessage,nBorder) { NewWindow=window.open("","NewOne","HEIGHT="+nHeight+",WIDTH="+nWidth+",top=50,left=100,scrollbars=no,resizable=no"); NewWindow.document.write ("<HTML><HEAD><TITLE>"); NewWindow.document.write ("</TITLE></HEAD>"); NewWindow.document.write ("<BODY BGCOLOR='black'>"); NewWindow.document.write ("<P ALIGN=CENTER>"); NewWindow.document.write ("<FONT FACE='Arial' SIZE='+2' COLOR='White'><B>"); NewWindow.document.write (cMessage); NewWindow.document.write ("</B></FONT>"); NewWindow.document.write ("<IMG SRC="); NewWindow.document.write (cPicture); NewWindow.document.write (">"); NewWindow.document.write ("</P>"); NewWindow.document.write ("<center><FORM><INPUT TYPE='button' VALUE='Close This Window' onClick='self.close()'>"); NewWindow.document.write ("</FORM></CENTER></BODY></HTML>"); NewWindow.document.write ("</BODY></HTML>"); NewWindow.document.close(); return false; }
//--> </script>
|
|
|
|