
Originally Posted by
jscheuer1
If it works properly with generic opacity, use that. The text rendering of faded text should be correct, and alpha channel images should also render correctly. Neither of these is true using the alpha opacity filter from IE 7 on.
That's an excellent point, and I should have just posted a workaround based on that instead. Never question John!
So to get IE9 to use the "opacity" property instead, replace the entire setopacity() function inside the .js file to the following version:
Code:
setopacity:function(setting, value){ //Sets the opacity of targetobject based on the passed in value setting (0 to 1 and in between)
var targetobject=setting.contentdivs[setting.currentpage-1]
if (targetobject.filters && targetobject.filters[0] && typeof targetobject.style.opacity=="undefined"){ //IE syntax (but not IE9)
if (typeof targetobject.filters[0].opacity=="number") //IE6
targetobject.filters[0].opacity=value*100
else //IE 5.5
targetobject.style.filter="alpha(opacity="+value*100+")"
}
else if (typeof targetobject.style.MozOpacity!="undefined") //Old Mozilla syntax
targetobject.style.MozOpacity=value
else if (typeof targetobject.style.opacity!="undefined"){ //Standard opacity syntax
targetobject.style.opacity=value
}
setting.curopacity=value
},
This isn't enough at the moment however. You now need to remove the below CSS rule inside the .css file:
Code:
filter:progid:DXImageTransform.Microsoft.alpha(opacity=100);
and then inside the HEAD section of your page containing the slider, compensate by adding the following code:
Code:
<!--[if lt IE 9]>
<style type="text/css">
.sliderwrapper .contentdiv{
filter:progid:DXImageTransform.Microsoft.alpha(opacity=100);
}
</style>
<![endif]-->
This reintroduces the filter rule, but only to IE8 and lesser browsers due to the related issue mentioned in my post above.
Bookmarks