Search the archives!
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[JavaScript] Simple Question
- From: javascript@xxxxxxxxxx (Andrew Gibson)
- Subject: [JavaScript] Simple Question
- Date: Fri, 27 Jul 2001 19:14:24 +1200
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
- Follow-Ups:
- [Javascript] Site check request
- From: Victor Papp
- [Javascript] Site check request
- References:
- [JavaScript] Simple Question
- From: 高煥明
- [JavaScript] Simple Question
- Prev by Date: [JavaScript] Simple Question
- Next by Date: [JavaScript] Simple Question
- Previous by thread: [JavaScript] Simple Question
- Next by thread: [Javascript] Site check request
- Index(es):