transparency - How to change opacity of a Xul element at runtime? -


i've tried

document.getelementbyid("myid").style = "opacity: 0.5"; 

but didn't work:

error: setting property has getter

also looks there's no "opacity" attribute or parameter (in box or window element).

any idea?

try setting style attribute

document.getelementbyid("myid").setattribute("style", "opacity: 0.5"); 

Comments

Popular posts from this blog

asp.net - repeatedly call AddImageUrl(url) to assemble pdf document -

java - Android recognize cell phone with keyboard or not? -

iphone - How would you achieve a LED Scrolling effect? -