<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=big5">


<META content="MSHTML 6.00.2462.0" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><SPAN class=589532712-27072001><FONT face=Arial color=#0000ff size=2>First, 
go to <A 
href="http://msdn.microsoft.com/scripting/">http://msdn.microsoft.com/scripting/</A>&nbsp;and 
download the jscript documentation.</FONT></SPAN></DIV>
<DIV><SPAN class=589532712-27072001><FONT face=Arial color=#0000ff 
size=2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=589532712-27072001><FONT face=Arial color=#0000ff size=2>AFAIK 
you problem may be because of the way you are using theName. Try 
</FONT></SPAN></DIV>
<DIV><SPAN class=589532712-27072001><FONT 
face=Courier>document.all.item(theName).style.top=theTrueTop</FONT></SPAN></DIV>
<DIV><SPAN class=589532712-27072001><FONT face=Arial color=#0000ff 
size=2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=589532712-27072001><FONT face=Arial color=#0000ff 
size=2>Document.all[] takes an index value.</FONT></SPAN></DIV>
<P><FONT size=2>Bob Filipiak (Contractor)<BR>MCP </FONT></P>
<BLOCKQUOTE dir=ltr style="MARGIN-RIGHT: 0px">
  <DIV class=OutlookMessageHeader dir=ltr align=left><FONT face=Tahoma 
  size=2>-----Original Message-----<BR><B>From:</B> proton@iii.org.tw 
  [mailto:proton@iii.org.tw]<BR><B>Sent:</B> Friday, July 27, 2001 2:02 
  AM<BR><B>To:</B> Javascript@LaTech.edu<BR><B>Subject:</B> [JavaScript] Simple 
  Question<BR><BR></FONT></DIV>
  <DIV><FONT face=Courier>function 
  KB_keepItInIE(theName,theWantTop,theWantLeft)<BR>{<BR>&nbsp;theRealTop=parseInt(document.body.scrollTop)<BR>&nbsp;theTrueTop=theWantTop+theRealTop<BR>&nbsp;document.all[theName].style.top=theTrueTop<BR>&nbsp;theRealLeft=parseInt(document.body.scrollLeft)<BR>&nbsp;theTrueLeft=theWantLeft+theRealLeft<BR>&nbsp;document.all[theName].style.left=theTrueLeft<BR>}<BR></FONT></DIV>
  <DIV><FONT face=Courier>Above is my JavaScript code segment, </FONT></DIV>
  <DIV><FONT face=Courier>sometimes IE told me document.all[''].style not an 
  object,</FONT></DIV>
  <DIV><FONT face=Courier>sometimes it seems OK!</FONT></DIV>
  <DIV><FONT face=Courier>I got confused and can't find out the 
  problem!!</FONT></DIV>
  <DIV><FONT face=Courier></FONT>&nbsp;</DIV>
  <DIV><FONT face=Courier>And, where can I find JavaScript Programming Reference 
  for IE?</FONT></DIV>
  <DIV><FONT face=Courier>Thanks for your kindly help!!</FONT></DIV>
  <DIV>&nbsp;</DIV>
  <DIV><FONT face=Courier>Best Regards,</FONT></DIV>
  <DIV><FONT face=Courier>Brad Kao</FONT></DIV>
  <DIV>&nbsp;</DIV></BLOCKQUOTE></BODY></HTML>