[JavaScript] Simple Question
Muchacho, Laurent (TWIi London)
LMuchacho at twii.net
Fri Jul 27 08:03:51 CDT 2001
Hi dude
I will write it like that
document.theName.style.left=theTrueLeft
It work for me
bob probably recommend a good documentation but don't mix jscript and
javascript it's not the same languages.
a other things Microsoft documentation doesn't bother with cross browser
implementation
then you code will work often only IE
Try that documentation
<http://developer.netscape.com/docs/manuals/js/client/jsref/index.htm>
http://developer.netscape.com/docs/manuals/js/client/jsref/index.htm
Laurent
-----Original Message-----
From: Filipiak, Bob (Contractor) [mailto:filipiab at atsc.army.mil]
Sent: 27 July 2001 13:32
To: 'javascript at LaTech.edu'
Subject: RE: [JavaScript] Simple Question
First, go to http://msdn.microsoft.com/scripting/
<http://msdn.microsoft.com/scripting/> and download the jscript
documentation.
AFAIK you problem may be because of the way you are using theName. Try
document.all.item(theName).style.top=theTrueTop
Document.all[] takes an index value.
Bob Filipiak (Contractor)
MCP
-----Original Message-----
From: proton at iii.org.tw [mailto:proton at iii.org.tw]
Sent: Friday, July 27, 2001 2:02 AM
To: Javascript at LaTech.edu
Subject: [JavaScript] Simple Question
function KB_keepItInIE(theName,theWantTop,theWantLeft)
{
theRealTop=parseInt(document.body.scrollTop)
theTrueTop=theWantTop+theRealTop
document.all[theName].style.top=theTrueTop
theRealLeft=parseInt(document.body.scrollLeft)
theTrueLeft=theWantLeft+theRealLeft
document.all[theName].style.left=theTrueLeft
}
Above is my JavaScript code segment,
sometimes IE told me document.all[''].style not an object,
sometimes it seems OK!
I got confused and can't find out the problem!!
And, where can I find JavaScript Programming Reference for IE?
Thanks for your kindly help!!
Best Regards,
Brad Kao
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.evolt.org/pipermail/javascript/attachments/20010727/a86ff20a/attachment.htm>
More information about the Javascript
mailing list