Ticket #934 (new enhancement)
Opacity totally rewrites filter on IE
| Reported by: | Devign | Owned by: | |
|---|---|---|---|
| Type: | enhancement | Priority: | minor |
| Milestone: | Mootools version 1.3 | Component: | Core |
| Keywords: | Opacity, IE6, filter | Cc: |
Description
Element.Properties.opacity.set totally rewrites the filter, that way already written filters are removed (gray(), AlphaImageLoader?...)
this.style.filter = ...
Could it only edit the specific alpha filter?
Code example (none mooish) of how maintaining the other filters:
<script type="text/javascript">
var x;
onload=function () {
x=document.getElementById("x");
setTimeout(function () { setOpacity(30); },500);
setTimeout(function () { setOpacity(80); },1000);
}
function setOpacity(i) {
if (!x.filters.alpha) x.style.filter+="alpha(opacity="+i+")";
else x.filters.alpha.opacity=i;
}
</script>
<div style="width:100px;height:100px;background-color:red;filter:gray()" id="x"></div>
Thanks.
Attachments
Change History
Note: See
TracTickets for help on using
tickets.