How to PNG Fix for IE6 with Mootools 1.2

here you can Request certain custom made Scripts in exchange for something (most likely money)

Moderator: 1.2 Moderators

How to PNG Fix for IE6 with Mootools 1.2

Postby vanquybn on Thu Jan 28, 2010 6:51 am

Can you help me How to PNG Fix for IE6 with Mootools 1.2?
vanquybn
 
Posts: 3
Joined: Wed Jan 06, 2010 9:55 am

Re: How to PNG Fix for IE6 with Mootools 1.2

Postby adamnfish on Fri Jan 29, 2010 12:26 pm

There are numerous scripts available, but typically a JavaScript solution isn't the best way to do this.

You'll get a brief flicker of grey while the page loads, it adds processing to the critical domready event and it only works for people with JavaScript enabled.

A better solution is to use the 'htc fix' that enables near-native PNG support to old versions of IE via IE's proprietary 'behaviours' CSS extension.
http://www.twinhelix.com/css/iepngfix/

You can add:
  1. behavior: url("iepngfix.htc");

to any elements you need the behaviour applied to, ideally within a conditional comment targeted at IE6 and under.

For example:
  1. <!--[if lte IE 6]>
  2. <style type='text/css'>
  3. img, div { behavior: url("iepngfix.htc") }
  4. </style>
  5. <![endif]-->
  6.  

(Obviously ensuring that the url points at the .htc file correctly)

Good luck
User avatar
adamnfish
mootools connoisseurs
 
Posts: 27
Joined: Fri Aug 08, 2008 2:26 am
Location: London, UK


Return to Script Request

Who is online

Users browsing this forum: No registered users and 1 guest