my dog learned polymorphism*
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
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