Re: Modifying stylesheet properties through JS
by "Rajnish Bhaskar" <r.bhaskar(at)compserv.gla.ac.uk>
|
| Date: |
Wed, 15 Jan 2003 16:16:07 -0000 |
| To: |
JimMenees(at)aol.com, hwg-languages(at)hwg.org |
| In-Reply-To: |
|
| |
todo: View
Thread,
Original
|
|
Hi Jim,
> I did some fooling around with floats. First, I found that the proper
> reference is: document.getElementById("layer_id").style.styleFloat;
I'm finding this very frustrating, because that's not working. It
looks like it should be working, but it's not. The Javascript
console in Mozilla tells me that "document.getElementById("first")
has no properties" and IE tells me "object expected". If you want to
see the page, you can find it at
http://elit2003.com/elit/elit2003/interested.html
It's IE5.5 that I'm working with.
I've just had a look and it seems to be style.floatStyle, not
style.styleFloat. But neither work with IE5.5 Win anyway. Gah.
> There has to be some way to nullify the float value to its default
> state and return the object's float value to that default or 'null'
> value.
It would probably be 'none', since the W3C reference says that values
for float can be 'left', 'right', 'none' or 'inherit'
(http://www.w3.org/TR/CSS2/visuren.html#propdef-float).
Raj.
HWG: hwg-languages mailing list archives,
maintained by Webmasters @ IWA
This page is part of a preserved archive of archives.hwg.org. The site is no longer active and its content is not maintained. For enquiries about this archive, write to archive(at)iwanet.org.