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
Post a Comment