Monday, August 30, 2010

Re: IE8 Style.setOpacity

Nevermind, I asked too soon, I ended up using:

style.setProperty("filter", "alpha(opacity \\=" + (int)(opacity*100) +
")");

and it worked fine.

On Aug 30, 3:55 pm, bconoly <bcon...@gmail.com> wrote:
> Hey All,
>    It seems that IE8 uses -ms-filter to work opacity propertly and the
> Style function for setting opacity works great in all browsers but
> IE8.  Does anyone know a workaround for setting the -ms-filter
> property via javascript?
>
> I've tried several:
> style.setProperty("MsFilter",
> "progid:DXImageTransform.Microsoft.Alpha(Opacity=" + (int)
> (opacity*100) + ")");
> style.setProperty("MsFilter",
> "\"progid:DXImageTransform.Microsoft.Alpha(Opacity=" + (int)
> (opacity*100) + ")\"");
> style.setProperty("msFilter",
> "\"progid:DXImageTransform.Microsoft.Alpha(Opacity=" + (int)
> (opacity*100) + ")\"");
>
> Any suggestions would be greatly appreciated,
> Thanks

--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to google-web-toolkit+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate