[thelist] Javascript problem

Jonas Bohlin jonas at halogen.com
Tue Feb 19 06:54:01 CST 2002


I'm to quick on the trigger it seems. it should read "(and in the class if
you're NOT dynamically creating the layers)"

-sawee

-----Original Message-----
From: Jonas Bohlin [mailto:jonas at halogen.com]
Sent: Tuesday, February 19, 2002 1:52 PM
To: 'thelist at lists.evolt.org'
Subject: RE: [thelist] Javascript problem


Actually, if you declare doctype strict, you have to set
oElement.style.left = "20px"
the first time you set it (and in the class if you're dynamically creating
the layers) after that
oElement.style.left = 20
I've found, works fine. Perhaps this is only true for netscape 6 though.

-jonas

-----Original Message-----
From: Peter-Paul Koch [mailto:gassinaumasis at hotmail.com]
Sent: Tuesday, February 19, 2002 1:37 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.

OK, so if you declare a doctype values *must* have units. Makes sense.

ppk

_________________________________________________________________
Join the world's largest e-mail service with MSN Hotmail.
http://www.hotmail.com

--
For unsubscribe and other options, including
the Tip Harvester and archive of thelist go to:
http://lists.evolt.org Workers of the Web, evolt !
--
For unsubscribe and other options, including
the Tip Harvester and archive of thelist go to:
http://lists.evolt.org Workers of the Web, evolt !



More information about the thelist mailing list