sidorak95
11-09-2007, 03:14 PM
I'm getting a Unterminated String Constant when I enter this code.
<SCRIPT TYPE="text/javascript" <body background="TXBK.jpg">
var correctwidth=1680
var correctheight=1050
if (screen.width<correctwidthllscreen.height<correctheight)
document.write("IMPORTANT: This Web page is best viewed with screen resolution
"+correctwidth+"x"=correctheight+". Your current resolution is "+screen.width+"x"+screen.height+". If possible, please change the resolution!")
</SCRIPT>
What am I doing wrong?
<SCRIPT TYPE="text/javascript" <body background="TXBK.jpg">
var correctwidth=1680
var correctheight=1050
if (screen.width<correctwidthllscreen.height<correctheight)
document.write("IMPORTANT: This Web page is best viewed with screen resolution
"+correctwidth+"x"=correctheight+". Your current resolution is "+screen.width+"x"+screen.height+". If possible, please change the resolution!")
</SCRIPT>
What am I doing wrong?