[JavaScript] Simple Question
Andrew Gibson
andyg at ihug.co.nz
Fri Jul 27 02:14:24 CDT 2001
Whats this to do with ASP?
Most probably theName is not making it through.
pop in alert (theName) and see what happens
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
More information about the Javascript
mailing list