Click to See Complete Forum and Search --> : generating transparency which looklikes a dark glass ??


rizi_1
05-27-2004, 11:58 AM
hi Everyone.
I need a little help in creating a trasparency which looks like a DARK GLASS. you can see through it but it darkens the view. I want to use it in a way that if i Applied any background on the web page and i insert this trasparency. i can see through this transparent image just like, we can see through the windows of MY MSN while dragging them. Actually i m trying to apply the same idea which is used in MY MSN(Drag N Drop). kindly help me in this regard.

Jona
05-27-2004, 02:41 PM
The image would have to be a PNG file to be semi-transparent -- I don't think GIFs support semi-transparency, in fact I'm not entirely sure PNGs do either. In any case, Internet Explorer doesn't support PNG transparency at all, so you're at a loss in that regard...

gianna
05-27-2004, 05:52 PM
It's a cool effect, but PNGs are poorly supported at present.

There are workarounds, but I believe they use proprietary code, and using that is a bad idea unless you're developing for a captive audience (ie. a corporate intranet where everyone uses the same browser). You find out more here (http://webfx.eae.net/dhtml/pngbehavior/pngbehavior.html).

If I were trying to achieve the look you're asking for, I would make it into a normal graphic and absolutely position it using CSS.

Good luck,
-g

Jona
05-27-2004, 07:47 PM
You may also try using JavaScript and opacity filters.