aspose file tools
The moose likes HTML, CSS and JavaScript and the fly likes Image Opacity Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Reply Bookmark "Image Opacity" Watch "Image Opacity" New topic
Author

Image Opacity

Jay Damon
Ranch Hand

Joined: Jul 31, 2001
Posts: 279
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: 279
The JavaScript code is:
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: Image Opacity
 
Similar Threads
Expand / Collapse of div elements
How to create a overlay in html to display ads or internal forms?
Game Script??
How can I create objects dynamically in a jsp and put them in a collection
how to change opacity/transparency of image on slider move