Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > Developer Center > Can someone help me with 'pngbehavior' please??

Can someone help me with 'pngbehavior' please??
Thread Tools
Mac Elite
Join Date: May 2001
Location: Melbourne, Australia
Status: Offline
Reply With Quote
Jun 25, 2003, 10:08 PM
 
Hey all,

I am re-designing my business site at the moment. I decided to use a fair few PNG graphics, as their transparency made the site much easier to update (colours, backgorund etc) wihtout having to recreate all of the gif's to blend in with the current look.

I knew when I started that Windows IE doesn't support transparent PNG's properly, but I had read on here that there was this 'pngbehavior' control that would make it work. However I am coming close to completing my page, and want to make it work with win.

I followed the instructions (put the pngbehaviour.htc file in the root directory) and added a bit of code to my HTML. Didn't work

The pretty incomplete site is at:

http://jbinteractive.net.au/test

Ignore the content and CSS it's all unfinished, but I'm talking specifically about the logo and tabs.

Maybe I used an old IE for windows? Anyone on a Windows machine care to take a look for me?

So my questions are:

1) has anyone here sucessfully used transparent PNGs on windows?

2) If you have, can you please help me??

3) In Internet explorer (mac and win) the 'line' under the tabs doesn't show correctly? Take a look in Safari/Camino/Mozilla then IE (mac). Grrr. And people say that Windows renders more sites correctly. Isn't that only because every developer *must* make the site work on Win IE? Therefore every site will look good in it??

Thanks for any help!

Jeremy
     
Dedicated MacNNer
Join Date: Aug 2002
Status: Offline
Reply With Quote
Jun 25, 2003, 11:39 PM
 
There is a way to do it...

http://www.alistapart.com/stories/pngopacity/

basicly if you want translucency in IE you need to call a proprietary function that it has... (makes no sense)

for my site I did a version check... if they were using an ie browser i gave them a graphic without transparency (renders the background) if they had a mozilla browser it gave them transparency... then again i had a stationary background

--will
     
Mac Elite
Join Date: May 2001
Location: Melbourne, Australia
Status: Offline
Reply With Quote
Jun 26, 2003, 08:40 PM
 
Thanks for the link! The way on the site seemed quite long and obtrusive. I tried it, but didn't work. However I went to the discussion board on his site and found a great one!

http://youngpup.net/_ui_webapp/getFr...ts/sleight.xml

It consists of only one line of code in the head of each page, and a link to an external javascript file. Any PNG's you insert don't need special tags after that!

Woot!!!

Thanks for the link mate!
     
   
Thread Tools
Forum Links
Forum Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Top
Privacy Policy
All times are GMT -5. The time now is 03:44 PM.
All contents of these forums © 1995-2011 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.7 © 2000-2011, Jelsoft Enterprises Ltd., Content Relevant URLs by vBSEO 3.3.2