<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 5.50.4611.1300" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=2>Hello all,</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>Yes, I'm a newbie.&nbsp; I'm working on a 
presentation for my computer science class at the University of Maine at 
Augusta.&nbsp; My presentation is taking apart a java/j script that works in 
both Netscape and IE and creating 2 separate scripts (ie, one Javascript and one 
jscript).&nbsp; I took the program apart and created the Javascript without 
problem.&nbsp; My problem is the jscript.&nbsp; I cannot get it to work and have 
absolutely no idea what I'm doing wrong.&nbsp; Can anyone help?&nbsp; (NOTE: 
I've already downloaded the documentation at microsoft for 
jscript.)</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>Thanks,</FONT></DIV>
<DIV><FONT face=Arial size=2>Audra</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>Here is the jscript code and the html that goes 
with it.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV>
<DIV><FONT face=Arial>var speed = 2; // smaller number moves the snow 
faster<BR>var dx, xp, yp;&nbsp;&nbsp;&nbsp; // coordinate and position 
variables<BR>var am, stx, sty;&nbsp; // amplitude and step variables<BR>var i 
=0;<BR>doc_width = document.body.clientWidth;<BR>doc_height = 
document.body.clientHeight;</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=Arial>dx = new Array();<BR>xp = new Array();<BR>yp = new 
Array();<BR>am = new Array();<BR>stx = new Array();<BR>sty = new 
Array();</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=Arial>for (i = 0; i &lt; 10; ++ i) {&nbsp; <BR>dx[i] = 
2;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
// set coordinate variables<BR>xp[i] = Math.random()*(doc_width-50);&nbsp; // 
set position variables<BR>yp[i] = Math.random()*doc_height;<BR>am[i] = 
Math.random()*20;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; // set 
amplitude variables<BR>stx[i] = 0.02 + Math.random()/10; // set step 
variables<BR>sty[i] = 0.7 + Math.random();<BR>}<BR>function ufoIE() {&nbsp; // 
IE main animation function<BR>for (i = 0; i &lt; 10; ++ i) {&nbsp; // iterate 
for every dot<BR>yp[i] += sty[i];<BR>if (yp[i] &gt; doc_height-50) {<BR>xp[i] = 
Math.random()*(doc_width-am[i]-30);<BR>yp[i] = 0;<BR>stx[i] = 0.02 + 
Math.random()/10;<BR>sty[i] = 0.7 + Math.random();</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=Arial>}<BR>dx[i] += stx[i];<BR>document.all[i].style.pixelTop = 
yp[i];<BR>document.all[i].style.pixelLeft = xp[i] + 
am[i]*Math.sin(dx[i]);<BR>}<BR>setTimeout("ufoIE()", 
speed);<BR>}<BR>ufoIE();</FONT></DIV>
<DIV><FONT face=Arial></FONT>&nbsp;</DIV>
<DIV><FONT 
face=Arial>-------------------------------------------------------------</FONT></DIV>
<DIV><FONT face=Arial>Here is the html code that I wrote for the 
jscript:</FONT></DIV>
<DIV><FONT face=Arial></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial>&lt;HTML&gt;</FONT></DIV>
<DIV><FONT face=Arial>&lt;HEAD&gt;<BR>&lt;TITLE&gt;Internet Explorer - Animation 
- JScript<BR>&lt;/TITLE&gt;</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=Arial>&lt;/HEAD&gt;<BR>&lt;BODY 
OnLoad="window.defaultStatus='JScript in Action!!';" 
bgcolor="#000000"&gt;</FONT></DIV>
<DIV>&nbsp;</DIV><FONT face=Arial>
<DIV><BR>&lt;div id="a" style = POSITION: absolute; Z-INDEX: i; VISIBILITY: 
visible; TOP: 15px; LEFT: 15px;&gt;&lt;img src="ufo2.gif" 
border="0"&gt;&lt;/div&gt;<BR></DIV>
<DIV>&lt;script src="ufoIE.asp"&gt;&lt;/script&gt;</DIV>
<DIV>&nbsp;</DIV>
<DIV>&lt;/body&gt;</DIV>
<DIV>&lt;/html</FONT></DIV></DIV></BODY></HTML>