Outer Court

Tech - Posts to comp.infosystems.www.*

From: "Philipp Lenssen" <lenssen@hitnet.rwth-aachen.de>
Newsgroups: comp.infosystems.www.authoring.stylesheets
Subject: Re: CSS properties -> invalid Javascript variables ??
Date: Wed, 14 Feb 2001 22:30:42 +0100
Message-ID: <96etec$mj5$1@nets3.rz.RWTH-Aachen.DE>
Stefan Radovanovici <srado@surfeu.de> schrieb in im Newsbeitrag:
96eq6f$umq$04$1@news.t-online.com...
>..
> BUT, when the stylesheet propoerty contains a dash (-) everything is
 screwed
> up. Take for example layer-background-color. I can set this with no
 problem
> in a css file, or inside <style> tags. But when i try to use Javascript to
> set the value I get an error because this.style.layer-background-color is
> not a valid JS variable. I think ... So the line
> onmouseover='this.style.layer-background-color=red'  fails.
>..

The rule is to take away the minus and make first letter of the second word
upper-case, like: backgroundColor








 
Basic
Goodies
Design
Tech
Email