[thelist] Setting opacity with Javascript in IE7
Mark Howells
webdev at mountain.ch
Fri Jan 19 10:04:18 CST 2007
Can anyone suggest why this simple code doesn't work in IE7? (Yes,
the element does exist.)
document.getElementById("id1").filter="alpha(opacity=75)";
Setting the opacity sadly still has to be done with a filter and
the equivalent CSS works fine.
#id1 {filter:alpha(opacity=75);}
Many thanks
Mark Howells
- www.permanenttourist.ch
- www.flickr.com/photos/mhowells/
More information about the thelist
mailing list