PHP Classes

Transparency/Opacity

Recommend this page to a friend!

      popupMsg  >  All threads  >  Transparency/Opacity  >  (Un) Subscribe thread alerts  
Subject:Transparency/Opacity
Summary:How is this defined?
Messages:3
Author:Bob Squires
Date:2007-09-30 20:13:25
Update:2007-10-01 15:46:03
 

  1. Transparency/Opacity   Reply   Report abuse  
Picture of Bob Squires Bob Squires - 2007-09-30 20:13:25
How do I apply an opacity (transparency) parameter of other than 100% (which you say is the default value in IE and FF)? I cannot understand where in your latest version files this is defined or applied. Thanks,

Bob Squires

  2. Re: Transparency/Opacity   Reply   Report abuse  
Picture of Dror Golan Dror Golan - 2007-10-01 08:06:09 - In reply to message 1 from Bob Squires
Hi Bob,
There are two options:
1. Change the default configuration at the constants section of the class
e.g:
define('FF_OPACITY_LEVEL',0.7); for Firefox
define('IE_OPACITY_LEVEL',70); for Explorer

2. Change the associative array MessageStyleArr and apply it to the class

e.g: MessageStyleArr["filter"] = "alpha(opacity=70)" for IE
MessageStyleArr["moz-opacity"] = 0.7 for FF
MessageStyleArr["opacity"] = 0.7


the last two examples actually have the same functionality.
I will soon revert the example files to reflect and illustrate those changes.

Dror.

  3. Re: Transparency/Opacity   Reply   Report abuse  
Picture of Bob Squires Bob Squires - 2007-10-01 15:46:03 - In reply to message 2 from Dror Golan
Dror,

Thank you for your rapid response - everything is clear to me now. And thank you for updating the example file, this is a great help.

Bob