Jump to content

JS opacity in IE


Fmdpa

Recommended Posts

document.getElementById("img").style.filter = 'alpha(opacity=' + 0.5*100 + ')';

with some caveats, however: http://www.quirksmode.org/js/opacity.html.P.S. The CSS opacity property takes a value between 0 and 1. It's the IE filter that uses percentages.

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...