<!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>&nbsp;</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>&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></BLOCKQUOTE></BODY></HTML>