<!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 5.00.3207.2500" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT color=#0000ff face=Arial size=2><SPAN class=093035212-27072001>Hi
dude </SPAN></FONT></DIV>
<DIV><FONT color=#0000ff face=Arial size=2><SPAN
class=093035212-27072001></SPAN></FONT> </DIV>
<DIV><FONT color=#0000ff face=Arial size=2><SPAN class=093035212-27072001>I will
write it like that </SPAN></FONT></DIV>
<DIV><FONT color=#0000ff face=Arial size=2><SPAN
class=093035212-27072001></SPAN></FONT> </DIV>
<DIV><FONT color=#0000ff face=Arial size=2><SPAN
class=093035212-27072001>document.theName.style.left=theTrueLeft</SPAN></FONT></DIV>
<DIV><SPAN class=093035212-27072001></SPAN><FONT face=Tahoma><FONT size=2><SPAN
class=093035212-27072001><FONT color=#0000ff
face=Arial></FONT></SPAN></FONT></FONT> </DIV>
<DIV><FONT face=Tahoma><FONT size=2><SPAN class=093035212-27072001> <FONT
color=#0000ff face=Arial>It work for me </FONT></SPAN></FONT></FONT></DIV>
<DIV><FONT color=#0000ff face=Arial size=2><SPAN class=093035212-27072001>bob
probably recommend a good documentation but don't mix jscript and javascript
it's not the same languages.</SPAN></FONT></DIV>
<DIV><FONT color=#0000ff face=Arial size=2><SPAN class=093035212-27072001>a
other things Microsoft documentation doesn't bother with cross browser
implementation</SPAN></FONT></DIV>
<DIV><FONT color=#0000ff face=Arial size=2><SPAN class=093035212-27072001>then
you code will work often only IE</SPAN></FONT></DIV>
<DIV><FONT color=#0000ff face=Arial size=2><SPAN
class=093035212-27072001></SPAN></FONT> </DIV>
<DIV><FONT color=#0000ff face=Arial size=2><SPAN class=093035212-27072001>Try
that documentation </SPAN></FONT></DIV>
<DIV><FONT color=#0000ff><SPAN class=093035212-27072001>
<P><A
href="http://developer.netscape.com/docs/manuals/js/client/jsref/index.htm"><FONT
face=Arial
size=2>http://developer.netscape.com/docs/manuals/js/client/jsref/index.htm</FONT></A></P></SPAN></FONT></DIV>
<DIV><FONT color=#0000ff face=Arial size=2><SPAN
class=093035212-27072001>Laurent</SPAN></FONT></DIV>
<DIV><FONT color=#0000ff face=Arial size=2><SPAN
class=093035212-27072001></SPAN></FONT> </DIV>
<DIV><FONT color=#0000ff face=Arial size=2><SPAN
class=093035212-27072001></SPAN></FONT> </DIV>
<DIV><FONT face=Tahoma><FONT size=2><SPAN
class=093035212-27072001> </SPAN>-----Original Message-----<BR><B>From:</B>
Filipiak, Bob (Contractor) [mailto:filipiab@atsc.army.mil]<BR><B>Sent:</B> 27
July 2001 13:32<BR><B>To:</B> 'javascript@LaTech.edu'<BR><B>Subject:</B> RE:
[JavaScript] Simple Question<BR><BR></DIV></FONT>
<BLOCKQUOTE dir=ltr style="MARGIN-RIGHT: 0px"></FONT>
<DIV><SPAN class=589532712-27072001><FONT color=#0000ff face=Arial
size=2>First, go to <A
href="http://msdn.microsoft.com/scripting/">http://msdn.microsoft.com/scripting/</A> and
download the jscript documentation.</FONT></SPAN></DIV>
<DIV><SPAN class=589532712-27072001><FONT color=#0000ff face=Arial
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=589532712-27072001><FONT color=#0000ff face=Arial
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 color=#0000ff face=Arial
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=589532712-27072001><FONT color=#0000ff face=Arial
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 align=left class=OutlookMessageHeader dir=ltr><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> theRealTop=parseInt(document.body.scrollTop)<BR> theTrueTop=theWantTop+theRealTop<BR> document.all[theName].style.top=theTrueTop<BR> theRealLeft=parseInt(document.body.scrollLeft)<BR> theTrueLeft=theWantLeft+theRealLeft<BR> 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> </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> </DIV>
<DIV><FONT face=Courier>Best Regards,</FONT></DIV>
<DIV><FONT face=Courier>Brad Kao</FONT></DIV>
<DIV> </DIV></BLOCKQUOTE></BLOCKQUOTE></BODY></HTML>