[thelist] Javascript problem

Mark Howells mark at mountain.ch
Tue Feb 19 06:13:00 CST 2002


>> <http://www.mark.ac/help/bottom.html>
>>
>> The problem I've got is that if I include a DOCTYPE, it doesn't work in IE
>> -- all I get is a Javascript alert stating invalid procedure call or
>> argument.
>
> Yep. Use document.documentElement instead of document.body . As far as I
> know this is only necessary in IE6, but you've also seen this problem in
> IE5Mac?

I have only seen it in IE5 / Mac. I've found the solution thanks to some
feedback, which was that the top and left declarations need to be suffixed
with "px" in IE5+, NS6+ and Opera.

E.g.

{theLayer.css.top=150px} not {theLayer.css.top=150}

Regards
Mark Howells
<http://www.mark.ac/evl>




More information about the thelist mailing list