How to do transparency on a web page

Monday, July 8, 2002 by werewolf | Discussion: WinCustomize Talk

I made a .png with alpha channel transparency, but it's not transparent on the web page. Is it possible? Could someone help please? Thank you.

Powered by SkinBrowser!
First Previous Page 1 of 2 Next Last
paxx
Reply #1 Monday, July 8, 2002 2:31 PM
Yes, it's normal because only Mozilla and Netscape 6 supports 8 bits transparency in PNGs. IE 5 and 6 reads the alpha information but stupidly displays it on a grey background (stupid Microsoft).
werewolf
Reply #2 Monday, July 8, 2002 4:24 PM
Yep, that's exactly what it's doing. Oh well. I had a neat idea, I'll have to figure something else out. I am *not* a web designer

Powered by SkinBrowser!
werewolf
Reply #3 Monday, July 8, 2002 4:31 PM
Ahhh, it's not even gray, it's C7CFCF to be exact. The web page won't do that color. Poop!

Powered by SkinBrowser!
paxx
Reply #4 Monday, July 8, 2002 4:32 PM
hehehe!
Another idea if you now Flash a little is to design your site in Flash.
Flash fully supports yhe 8 bit alpha channel in PNGs.
werewolf
Reply #5 Monday, July 8, 2002 4:37 PM
I just barely know what Flash is, don't have a clue how to use it. I figured out the backround color thing. I did some web page stuff a long time ago, but it seems I've forgotten it all. I'm using 1st Page 2000 to help me, but I'll have to re-read my HTML books to get re-acquainted with the basics.

Powered by SkinBrowser!
paxx
Reply #6 Monday, July 8, 2002 4:50 PM
I made a quick example to illustrate it:
http://pax.gslcom.com/pngtest/

Drag the face of my messy son around.
paxx
Reply #7 Monday, July 8, 2002 4:51 PM
K, no problem.
Carlitus
Reply #8 Monday, July 8, 2002 4:55 PM
wow paxx! good example! i have another example using transparent PNGs on a Flash file: http://www.carlitus.net the left menu uses pngs with alpha channel
Note: i used Swish 2 not Flash 5!
werewolf
Reply #9 Monday, July 8, 2002 5:13 PM
Paxx and Carlitus thanks for the examples. Those are cool. Carlitus, I like your left panel. Was that hard to set up? I'd like to give something like that a try. But, read my prior post, I'm pretty much back to square one with this.

Powered by SkinBrowser!
werewolf
Reply #10 Monday, July 8, 2002 5:16 PM
Hmmm, any free alternative for doing simple Flash type things?

Powered by SkinBrowser!
joetheblow
Reply #11 Monday, July 8, 2002 8:51 PM
I was wondering if you could make a transparacy that allows a user to see the background (the desktop). I was trying a gif with transparancy and set it as the backround but I haven't tried it yet.

and what about frameless web pages? can you use a transparancy on that so it looks like a shape instead of a square?
Transmutate
Reply #12 Monday, July 8, 2002 8:59 PM
Here's a crazy idea: why not use a transparent (where it needs to be) .gif file instead of the .png file?
paxx
Reply #13 Monday, July 8, 2002 9:03 PM
Hehehe! Transmutate: you and your crazy ideas!

Of course, a GIF is the only way to do simple one color transparency, but PNG is the only solution for 256 color transparency.
fearoffours
Reply #14 Tuesday, July 9, 2002 4:09 AM
hmmm I've seen a shareware flash thing on the cover of some UK computing mags...

fearoffours toddles off to google
fearoffours
Reply #15 Tuesday, July 9, 2002 4:12 AM
Here we are: 3D Flash Animator. I've not used it, but looks ok. I imagine it's not as fully featured as the real thing, but it's US$49.95 and there's a free demo download: http://www.3dfa.com/
paxx
Reply #16 Tuesday, July 9, 2002 6:52 AM
werewolf, if all you want to do is type, you can use the "Flashtyper" on Flashkit's web site. You use it online, you don't download it. You can use from a plaetoria of fonts and effects. It's free.

For a cheap alternative, there is SWiSH that Carlitus mentioned. http://www.swishzone.com It's 50$ and the best cheap alternative to Flash that I know. There is also SWFX for 30$ http://www.wildform.com/swfx/
craeonics
Reply #17 Tuesday, July 9, 2002 8:12 AM
WIth the advent of http://www.openswf.org we might see a freeware Flash creation package one day.

Anyhow, did you know IE _is_ capable of displaying .png's correctly with alpha. Run a search for it, but it boils down to inserting some special code into the img tags.
paxx
Reply #18 Tuesday, July 9, 2002 9:17 AM
Really Crae? Gonna have to look into it. It's very interesting...

As far as open SWF, the SWF format has been an open format for some time now (2 years I think), and it has indeed resulted into a number of SWF generator other than Macromedia's (including one from Adobe), but none free yet...
paxx
Reply #19 Tuesday, July 9, 2002 9:36 AM
OK crae, a search on Google didn't yield any result. All I find is that IE does NOT support 256 colors alpha channel. It does indeed support 1 color transparency in 256 color PNGs (much like the GIF format), but that's it. Can you please tell me where I can the info you are about? Pretty please?
paxx
Reply #20 Tuesday, July 9, 2002 10:09 AM
Never mind, I found it on MSDN's site! It WORKS!!!
Of course, it's the type of code that only works in IE, so you have to do 2 versions of the page for Netscape 6 and Mozilla.
Check it out: http://pax.gslcom.com/pngtest/png.htm
Made a version for IE and a version for N6/Moz. Earlier versions of Netscape won't display the transparency.

Again, drag my dirty boy around to see! Coooooooooooooool!

Please login to comment and/or vote for this skin.

Welcome Guest! Please take the time to register with us.
There are many great features available to you once you register, including:

  • Richer content, access to many features that are disabled for guests like commenting on the forums and downloading skins.
  • Access to a great community, with a massive database of many, many areas of interest.
  • Access to contests & subscription offers like exclusive emails.
  • It's simple, and FREE!



web-wc01