Click to See Complete Forum and Search --> : dynamically controlling alpha property


LittleRed
11-07-2003, 05:01 AM
is there any way to control alpha/transparency levels dynamically? I'd like to get an image fading in to about 50% transparency, moving across the background image and fading out again.

what level of browser support is there for the .png format to use the alpha channel in that?

...or am I just going to have to do it in Flash?

cheers

Fang
11-09-2003, 05:10 AM
1) No.
2)PNG support (http://www.graphicswiz.com/png/pngapbr.html). Partial solution (http://support.microsoft.com/default.aspx?scid=kb;en-us;265221)
3)Probably

LittleRed
11-10-2003, 02:50 AM
thanks Fang, I think Flash it is.

SnowCrash
11-20-2003, 08:01 AM
Hi
you can also use CSS together with JavaScript:

Ie:
CSS: .Obj {filter: alpha(opacity = 0);}
JS: Obj.filters.alpha.opacity = Opacity;

Mozilla/Netscape:
CSS: .Obj {-moz-opacity: 0;}
JS: Obj.style.MozOpacity = Opacity + "%";