HighDots Forums  

IE Jpeg opacity?

Javascript JavaScript language (comp.lang.javascript)


Discuss IE Jpeg opacity? in the Javascript forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Keith Hughitt
 
Posts: n/a

Default IE Jpeg opacity? - 06-16-2008 , 02:09 PM






A little off-topic, but, does anyone know if it's possible to set the
opacity of jpeg images in IE7+? For firefox, the css "opacity"
property works fine on most image types including jpegs. On IE,
however, the equivalent filter, "(filter: alpha(opacity=...)," only
works with PNG images.

Anyone know if it's possible to get the property to work for jpeg
images as well?

Thanks,
Keith

Reply With Quote
  #2  
Old   
Bart Van der Donck
 
Posts: n/a

Default Re: IE Jpeg opacity? - 06-18-2008 , 02:29 AM






Keith Hughitt wrote:

Quote:
A little off-topic, but, does anyone know if it's possible to set the
opacity of jpeg images in IE7+? For firefox, the css "opacity"
property works fine on most image types including jpegs. On IE,
however, the equivalent filter, "(filter: alpha(opacity=...)," only
works with PNG images.

Anyone know if it's possible to get the property to work for jpeg
images as well?
As per my test, the following should work on MSIE6 (XP) and MSIE7
(Vista):

<img src="http://www.dotinternet.be/img/header/webdesign_e.jpg"
border="0"
style="filter: alpha(opacity=25)"
Quote:
Maybe MSIE could have problems if your JPEG-file has an unusual codec
(?)

http://en.wikipedia.org/wiki/JPEG

Hope this helps,

--
Bart


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.