209 posts
  • Sells items exclusively on Envato Market
  • Elite Author: Sold more than $75,000 on Envato Market
  • Has sold $125,000+ on Envato Market
  • Won a competition
+7 more
FWDesign says

Can anybody show me the correct javascript syntax for setting the opacity(alpha) in IE8 , I tried everything I just can’t figure it out. Please no jquery or other libraries I need the js syntax.

Thanks.

209 posts
  • Sells items exclusively on Envato Market
  • Elite Author: Sold more than $75,000 on Envato Market
  • Has sold $125,000+ on Envato Market
  • Won a competition
+7 more
FWDesign says

Ok I figured it out, crap ie sucks so bad.

Syntax: element.style.filter = “progid:DXImageTransform.Microsoft.Alpha(Opacity=50)”;

Note if the html element has children and you want to apply the same opacity to the them then you need to set the filter css property to inherit.

Syntax: element.style.filter = “inherit”;

Hope this helps someone.

5408 posts The Dude Abides
  • Located in United States
  • Elite Author: Sold more than $75,000 on Envato Market
  • Has sold $125,000+ on Envato Market
  • Has been part of the Envato Community for over 5 years
+9 more
CodingJack says

now try adjusting the opacity when the element has other filters :P Tried to figure that out once and eventually just gave up :D

209 posts
  • Sells items exclusively on Envato Market
  • Elite Author: Sold more than $75,000 on Envato Market
  • Has sold $125,000+ on Envato Market
  • Won a competition
+7 more
FWDesign says

I only need the opacity , I am rewriting my libraries to work on ie7, ie8… surprisingly it works great:), and get read of jquery because I only use a few thing from the library, it make no sense importing 10.000 lines of code for this, plus there will be no more incompatibilities.

The only issue that I had was the opacity the rest is actually simple, but it is solved.

Helpful Information

  • Please read our community guidelines. Self promotion and discussion of piracy is not allowed.
  • Open a support ticket if you would like specific help with your account, deposits or purchases.
  • Item Support by authors is optional and may vary. Please see the Support tab on each item page.

Most of all, enjoy your time here. Thank you for being a valued Envato community member.

Post Reply

Format your entry with some basic HTML. Read the Full Details, or here is a refresher:

<strong></strong> to make things bold
<em></em> to emphasize
<ul><li> or <ol><li> to make lists
<h3> or <h4> to make headings
<pre></pre> for code blocks
<code></code> for a few words of code
<a></a> for links
<img> to paste in an image (it'll need to be hosted somewhere else though)
<blockquote></blockquote> to quote somebody

:grin: :shocked: :cry: Complete List of Smiley Codes

by
by
by
by
by
by