Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

HELP!!!!!!! JavaScript For IExplorer

Status
Not open for further replies.

bugsy007

Programmer
Feb 6, 2001
3
CH
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=&quot;JavaScript&quot;>
var res=&quot;&quot;;
if(screen.height==(76||screen.width==(1024))
res=&quot;img1024&quot;;
else if(screen.height==(600)||screen.width==(800))
res=&quot;img800&quot;;

< /script>
< /head>

< body >

< img src=&quot;&amp;{res};/image1.gif&quot; align=&quot;right&quot;>
< /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(&quot;< img src=\&quot;&quot; + res + &quot;/image1.gif\&quot;
align=\&quot;right\&quot;> &quot;);< /script>
au lieu de :
< img src=&quot;&amp;{res};/image1.gif&quot; align=&quot;right&quot;>
.

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top