Showing posts with label transparent. Show all posts
Showing posts with label transparent. Show all posts

Friday, January 8, 2010

Transparent Flash

I once have this requirement to be fulfilled to make a swf file to appear transparent on a web page. After "googling" around, I found that:


<PARAM NAME=wmode VALUE="transparent">


has to be in the OBJECT tag for IE

and


WMODE="transparent"


has to be in the
<embed>
tag for Firefox.

and the background color of EMBED and OBJECT will be treated as transparent color as in the swf file.


Surprisingly, the result looks pretty good in Firefox. But the IE looks terrible. The edge of object in swf is wrapped with black borders and darkened if it is fading.

I still haven't found a solution to this. Not a good sharing but it is a good experience.



Read More »

Friday, January 1, 2010

My First Web Trick

Today is 1st of January 2010. Happy 2010! I just realized that today is a good day to start a new project: blogging.

Hi! I’m a semi-professional web programmer and would like to share web development tricks with new developers.

This is my first blog this web trick thing:

How to make all browsers to show a transparent layer?


Div.abc {
filter:alpha(opacity=80);
-moz-opacity:0.8;
opacity:0.8;
}


These are CSS codes for DIV layer with class name of “abc” using class=”abc” notation.

With Comment:


filter:alpha(opacity=80); /*This is for IE with transparency of 80%*/
-moz-opacity:0.8; /*This is for Firefox with transparency of 80%*/
opacity:0.8; /*This is for Safari with transparency of 80%*/






Read More »