[thelist] xml in javascript ie does show it

aardvark evolt at roselli.org
Fri Oct 21 08:32:51 CDT 2005


On 21 Oct 2005 at 2:24, Matt Warden wrote:
[...]
> gruppenfreizeit wrote:
> > 'tbl.lastChild.lastChild.setAttribute("style","color:lightblue;font-weight:b
> > old;width:20%;background-Color:#000066;padding-bottom:5px;padding-left:10px;
> > padding-top:5px;padding-right:5px;position:relative;");';
> 
> Instances like this, you must use .style, e.g.:
> 
> tbl.lastChild.lastChild.style = 'color: lightblue:...';

wouldn't it be:
tbl.lastChild.lastChild.style.color = 'lightblue';
tbl.lastChild.lastChild.style.width="20%";
...

and hyphenated elements go all camel case:
	....style.borderColor="#ff0000";
	....style.backgroundColor="#ffffff";





More information about the thelist mailing list