WebFX WebBoard
Message Thread:
View All Messages
Back to WebFX
 Using 8 bit transparent PNGs in DHTML Menu 4, Guillermo, March 7, 2004
     Re:Using 8 bit transparent PNGs in DHTML Menu 4, Mattes, March 8, 2004
         Re:Using 8 bit transparent PNGs in DHTML Menu 4, Guillermo, March 8, 2004
             Re:Using 8 bit transparent PNGs in DHTML Menu 4, Mattes, March 8, 2004
                 Re:Using 8 bit transparent PNGs in DHTML Menu 4, Guillermo, March 9, 2004
                     Re:Using 8 bit transparent PNGs in DHTML Menu 4, Mattes, March 9, 2004
                         Re:Using 8 bit transparent PNGs in DHTML Menu 4, Guillermo, March 9, 2004

Subject: Re:Using 8 bit transparent PNGs in DHTML Menu 4 From: Mattes Date: March 8, 2004

Hi!
Simply use the PNG Behavior published on this site (webFX). You don't need to understand how it work, just link it to your images by adding a stylesheet like: img { behavior:url(pngbehavior.htc) }.....

BUT:
If you load the images before you put them in the menu, the effect won't work. Example: You load the content of the menu folders in your document and copy the content by something like innerHTML into the menu folder. The point is: The Behavior triggers on propertyChange, which works when the image is loaded first. If you copy the source you don't copy the right image (hard to explain)..... ;-)
Maybe you don't need to know..... if so, ask for that again - there's a simple workaround!

Mattes

From: Guillermo
Sent: March 7, 2004
Subject: Re:Using 8 bit transparent PNGs in DHTML Menu 4

I was wondering how can I use PNG graphics with 8 bit transparency (PNG-24) for the menu icons in DHTML Menu 4. What should I tweak ar add in order to display it's transparecy correctly in IE.

Thanks!





Reply
Name: 
Email: 
Subject: 

Enter your reply to this message below. HTML tags are not supported but words that start with http://, ftp:// or mailto: are converted to links.


View All Messages
Back to WebFX