File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes HTML, CSS and JavaScript and the fly likes Image Opacity Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "Image Opacity" Watch "Image Opacity" New topic
Author

Image Opacity

Jay Damon
Ranch Hand

Joined: Jul 31, 2001
Posts: 282
I inherited the following JavaScript method to set the opacity for images in IE. However, apparently if the image does not have an initial style similar to style="filter:alpha(opacity=100)", the code will not work as a result of the if statement on line 8. Is there a way to create an initial style in JavaScript if one does not exists?

Jay Damon
Ranch Hand

Joined: Jul 31, 2001
Posts: 282
The JavaScript code is:
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Image Opacity
 
Similar Threads
how to change opacity/transparency of image on slider move
How can I create objects dynamically in a jsp and put them in a collection
Expand / Collapse of div elements
Game Script??
How to create a overlay in html to display ads or internal forms?