[thelist] Javascript problem

Scarlett Julian (ED) Julian.Scarlett at sheffield.gov.uk
Tue Feb 19 06:31:00 CST 2002


Do the units *have* to be px or is it enough that they are declared, e.g.
would {theLayer.css.top=30%} or {theLayer.css.top=20em}work equally
well....just a thought.

Julian

> -----Original Message-----
> From: Mark Howells [mailto:mark at mountain.ch]
> Sent: Tuesday, February 19, 2002 12:14 PM
> To: thelist at lists.evolt.org
> Subject: Re: [thelist] Javascript problem
>
>
> >> <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>
>
> --
> For unsubscribe and other options, including
> the Tip Harvester and archive of thelist go to:
> http://lists.evolt.org Workers of the Web, evolt !
>
The information in this email is confidential. The contents may not be disclosed or used by anyone other than the addressee.  If you are not the addressee, please tell us by using the reply facility in your email software as soon as possible. Sheffield City Council cannot accept any responsibility for the accuracy or completeness of this message as it has been transmitted over a public network.  If you suspect that the message may have been intercepted or amended please tell us as soon as possible.




More information about the thelist mailing list