[JavaScript] Simple Question

高煥明 proton at iii.org.tw
Fri Jul 27 01:02:03 CDT 2001


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/f00df1be/attachment.htm>


More information about the Javascript mailing list