Scott,

Thank you. This idea of behaviors is new to me. The other link was something similar but it didn't work. I hope yours does. 

I will give this a try today. What if I am using images for submit buttons? ie. <input name="SaveCustomer" id="savecustomer" type="image" value="savecustomer" src="">

Do height and width and style apply here? In bbEdit, there are no options for it with this kind of input tag. 

Also, does the transparent gif belong in the same file as the .htc file? And on mac, is it better to open the htc file with BBEdit and resave for the mac environment? 

thanks

Mark




On Nov 3, 2006, at 8:12 AM, Scott Cadillac wrote:

Hi David,

I have a workaround that works for IE6. 

I originally got it elsewhere a couple years ago, but I can't find the
original link. I've modified the behavior file (.htc) a few times, so it's
not exactly the same as the original, but it does work.

Download the zip file at the following link, it contains the .htc file and a
transparent .gif which overlays on the image to fix the png transparency.


Then you have to include height and width dimensions with your IMG tag,
something like so:

< img src="" width=128 height=128 style="width:128;
height:128;">

Then include some CSS like so:

img {
behavior:url(/PngFix.htc);
}

An example of this is at (see the view-source):


Interestingly, this is a great example of the usefullness of behaviors, by
giving MSIE some special functionality (in this case a fix) - that is
ignored by other browsers. 

Hope this helps.

~~~~~~~~~~~~~~~~~~~~~~~~~~~ 
Scott Cadillac, 
Xmlx Software 

(403) 254-5002 

XML-Extranet 
P.O. Box 69006 
RPO Bridlewood SW 
Calgary, Alberta 
Canada T2Y 4T9 
~~~~~~~~~~~~~~~~~~~~~~~~~~~ 



-----Original Message-----
From: Robert Garcia [mailto:[EMAIL PROTECTED]] 
Sent: Friday, November 03, 2006 8:20 AM
Subject: Re: Witango-Talk: PNG images and IE6

IE does not support png transparency, I think it may now in 
IE 7, but  
it sucks in IE 6 and previous.

I saw that someone tried to fix with JS, but haven't tried it, here  
is a link. Have fun.


-- 

Robert Garcia
President - BigHead Technology
VP Application Development - eventpix.com
13653 West Park Dr
Magalia, Ca 95954
ph: 530.645.4040 x222 fax: 530.645.4040

On Nov 3, 2006, at 12:15 AM, David Mark Weiss wrote:

on a site I am developing I am wanting to use PNG Graphics as  
backgroud-image in CSS. The transparency of these images 
work great  
allowing me to change background colors on the fly if 
necessary and  
they look great. However they don't work using IE6.  Perhaps there  
is a way to use Jpg's and get transparency out of them, that I  
don't know about.

I have tried a couple of things I found on the web, but 
still no joy.

one of them.

Since I am sure many of you have probably run into this before, I  
am wondering how you got around it and made them work or if 
that is  
just a dead horse.

Thanks for your thoughts,

Mark




______________________________________________________________
________ 
__

______________________________________________________________
__________


________________________________________________________________________



________________________________________________________________________
TO UNSUBSCRIBE: Go to http://www.witango.com/developer/maillist.taf

Reply via email to