Who can help me my prob is :
i call a variable out side the <Script></Script> tag's
and i dont want to put it my <body> part Nescape my script function in Nestcape no probleme but Internet Explorer ignore it!!!!!!!
My Script :
< html>
< head>
< title> Untitled< /title>
< script language="JavaScript">
var res="";
if(screen.height==(76||screen.width==(1024))
res="img1024";
else if(screen.height==(600)||screen.width==(800))
res="img800";
< /script>
< /head>
< body >
< img src="&{res};/image1.gif" align="right">
< /body>
< /html>
! I KNOW I CAN MAKE IT BUT I DONT WANT A SCRIPT TAG IN THE BODY PART
I DONT WANT THIS
|
|
\|/
V
< script> document.write("< img src=\"" + res + "/image1.gif\"
align=\"right\"> "< /script>
au lieu de :
< img src="&{res};/image1.gif" align="right">
.
i call a variable out side the <Script></Script> tag's
and i dont want to put it my <body> part Nescape my script function in Nestcape no probleme but Internet Explorer ignore it!!!!!!!
My Script :
< html>
< head>
< title> Untitled< /title>
< script language="JavaScript">
var res="";
if(screen.height==(76||screen.width==(1024))
res="img1024";
else if(screen.height==(600)||screen.width==(800))
res="img800";
< /script>
< /head>
< body >
< img src="&{res};/image1.gif" align="right">
< /body>
< /html>
! I KNOW I CAN MAKE IT BUT I DONT WANT A SCRIPT TAG IN THE BODY PART
I DONT WANT THIS
|
|
\|/
V
< script> document.write("< img src=\"" + res + "/image1.gif\"
align=\"right\"> "< /script>
au lieu de :
< img src="&{res};/image1.gif" align="right">
.