<!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>May 8 is the day of the presentation...I have to 
have it up on the web by the end of next week at the latest (Prof. has to read 
it before I can do the presentation -- his idea of a term paper.)&nbsp; 
Why?&nbsp; Been working on it for 2 1/2 weeks now!!!&nbsp; :-) Thought I'd start 
looking for help from live people instead of books.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>Audra</FONT></DIV>
<BLOCKQUOTE dir=ltr 
style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
  <DIV style="FONT: 10pt arial">----- Original Message ----- </DIV>
  <DIV 
  style="BACKGROUND: #e4e4e4; FONT: 10pt arial; font-color: black"><B>From:</B> 
  <A title=Joe.Karau@Kingland.com href="mailto:Joe.Karau@Kingland.com">Karau, 
  Joe</A> </DIV>
  <DIV style="FONT: 10pt arial"><B>To:</B> <A title=javascript@LaTech.edu 
  href="mailto:'javascript@LaTech.edu'">'javascript@LaTech.edu'</A> </DIV>
  <DIV style="FONT: 10pt arial"><B>Sent:</B> Thursday, April 26, 2001 4:18 
  PM</DIV>
  <DIV style="FONT: 10pt arial"><B>Subject:</B> RE: [Javascript] need help with 
  JScript!!</DIV>
  <DIV><BR></DIV>
  <DIV><FONT face=Arial color=#0000ff 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><A 
  href="mailto:joe.karau@kingland.com">joe.karau@kingland.com</A></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 class=OutlookMessageHeader dir=ltr align=left><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> <A 
    href="mailto:javascript@LaTech.edu">javascript@LaTech.edu</A><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></BLOCKQUOTE></BODY></HTML>