<!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.00.2920.0" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT color=#0000ff face=Arial size=2><SPAN class=597134119-26042001>When
is this presentation due?</SPAN></FONT></DIV>
<DIV> </DIV>
<P><FONT face=Arial size=2>Joseph Karau</FONT> <BR><FONT face=Arial
size=2>Kingland Systems</FONT> <BR><FONT face=Arial
size=2>joe.karau@kingland.com</FONT> <BR><FONT face=Arial
size=2>507-536-3629</FONT> <BR><FONT face=Arial size=2>AIM: jkara3629</FONT>
</P>
<BLOCKQUOTE style="MARGIN-RIGHT: 0px">
<DIV align=left class=OutlookMessageHeader dir=ltr><FONT face=Tahoma
size=2>-----Original Message-----<BR><B>From:</B> WolfSong
[mailto:wolfsong@midcoast.com]<BR><B>Sent:</B> Thursday, April 26, 2001 2:57
PM<BR><B>To:</B> javascript@LaTech.edu<BR><B>Subject:</B> [Javascript] need
help with JScript!!<BR><BR></DIV></FONT>
<DIV><FONT face=Arial size=2>Hello all,</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Yes, I'm a newbie. I'm working on a
presentation for my computer science class at the University of Maine at
Augusta. 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). I took the program apart and created the Javascript
without problem. My problem is the jscript. I cannot get it to
work and have absolutely no idea what I'm doing wrong. Can anyone
help? (NOTE: I've already downloaded the documentation at microsoft for
jscript.)</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </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> </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> </DIV>
<DIV>
<DIV><FONT face=Arial>var speed = 2; // smaller number moves the snow
faster<BR>var dx, xp, yp; // coordinate and position
variables<BR>var am, stx, sty; // amplitude and step variables<BR>var i
=0;<BR>doc_width = document.body.clientWidth;<BR>doc_height =
document.body.clientHeight;</FONT></DIV>
<DIV> </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> </DIV>
<DIV><FONT face=Arial>for (i = 0; i < 10; ++ i) { <BR>dx[i] =
2;
// set coordinate variables<BR>xp[i] = Math.random()*(doc_width-50); //
set position variables<BR>yp[i] = Math.random()*doc_height;<BR>am[i] =
Math.random()*20; // 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() { //
IE main animation function<BR>for (i = 0; i < 10; ++ i) { // iterate
for every dot<BR>yp[i] += sty[i];<BR>if (yp[i] > 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> </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> </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> </DIV>
<DIV><FONT face=Arial><HTML></FONT></DIV>
<DIV><FONT face=Arial><HEAD><BR><TITLE>Internet Explorer -
Animation - JScript<BR></TITLE></FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial></HEAD><BR><BODY
OnLoad="window.defaultStatus='JScript in Action!!';"
bgcolor="#000000"></FONT></DIV>
<DIV> </DIV><FONT face=Arial>
<DIV><BR><div id="a" style = POSITION: absolute; Z-INDEX: i; VISIBILITY:
visible; TOP: 15px; LEFT: 15px;><img src="ufo2.gif"
border="0"></div><BR></DIV>
<DIV><script src="ufoIE.asp"></script></DIV>
<DIV> </DIV>
<DIV></body></DIV>
<DIV></html</FONT></DIV></DIV></BLOCKQUOTE></BODY></HTML>