png in internet explorer: how to use
png in internet explorer: how to use
png in windows ie: how to use
home
| the problem
| the solution
| how to use
| more info
the js code can be seen if you do a "view source" on the solution page. there are two ways to use it - simple copy & paste or the js include file method. note that you must have height and width attributes specified for each image. other attributes (class, alt, title & style) are optional so far as this routine is concerned, but are respected if specified.
there is also an imagemap version if you want to use imagemaps and/or
form input images and a rollover version which enables the use of transparent pngs in rollovers.
method 1: copy & paste
for single page or occasional usage, copy the js code in its entirety
(from <!--[if lt ie 7]> to
<![endif]-->) and paste it into your page somewhere in the the <head> section. that's it.
method 2: (recommended) js include file
if you wish to use the code on multiples of pages, you may prefer to use a js include file. first,
download the js file here: pngfix.js. place the file in your webpage directory, then add the following construct on each of your pages somewhere in the <head> section:
<!--[if lt ie 7.]>
<script defer type="text/javascript" src="pngfix.js"></script>
<![endif]-->
note the use of the defer keyword. this trick causes the images to be replaced before they are rendered. earlier versions of this script did not use this method, occasionally resulting in an unpleasant screen flicker as the pngs were being filtered. the code in the include file is slightly different from the copy and paste code referred to above, so i recommend downloading my file rather than making your own.
here is a demo page using the include file method. this method is arguably better for use with multiples of pages, as it only requires three lines of code per page. the js file is only 2kb in size and will be cached after the first download. it will therefore incur no further download overhead on subsequent pages. the download time should be around 0.3 seconds on an average 48kbps dial-up modem connection.
<< previous | next >>
Acceuil
suivante
png in internet explorer: how to use Registry Repair, Clean Up & File Fix for Windows Markdown Fix Histoire philosophique et politique des établissemens et du ... - Résultats Google Recherche de Livres How not to fix HTML ¶ Personal Weblog of Joe Clark, Toronto Madeleine Fix-Hansen :: Design :: Illustration :: Media ... MacNN Apple updates iMac fix for Tiger users MacNN Apple updates iMac fix for Tiger users Acheter Housse pouf Sit Fix... avec eco-SAPIENS macosxhints.com - 10.5: A fix for broken video chats and screen ... PKH-fix - Prozeßkostenhilfeberechnung molly.com » So How Do We Fix the Web, Really? How to fix broken Firefox extensions Free Software Magazine System Downloads : DHCP Fix /// AnalogX Reviews: Video Game Reviews Are Broken, Please Fix OpenBSD 4.0 errata Water fix proposed in Southeast - Weather - MSNBC.com Lettres édifiantes et curieuses, écrites des missions étrangères. - Résultats Google Recherche de Livres Candy- Chocolate- A Candy Fix Free Registry Fix - Fix My Registry QuickFix: Open Source FIX Engine SmitFraudFix Macworld: News: Apple posts QuickTime security fix Macworld: News: Apple releases fix for iMac freezing issue The new urgency to fix online privacy Tech News on ZDNet The Beyonce Fix Intro.... Let's Fix britain IEBlog : Fix My Settings in IE7 GRC FIX-CIH Virus Recovery SubZero Fix PSTwo - : FOXCHIP : Modification et Réparation des ... Debian: New phpmyadmin packages fix cross-site scripting - The ... SF Gate: Columnists: Mark Morford Archive PC Fix Error Doctor Registry Cleaner PC Diagnostics PC Checkup FIX-IT - bedrijvengids - handelsgids - webdesign - Pc repair ... Wiki Autrans - Fix Fix all Ajax cross-browser problems then deploy IPython fix for Leopard - O'Reilly ONLamp Blog Ajaxian » IE’s Memory Leak Fix Greatly Exaggerated Object Fix Zip - Freeware for repairing damaged ZIP archives with ... Bike Shop Frederick, Maryland Bike Repairs, Bike Sales --BICYCLE ... Two charged with hacking PeopleSoft to fix grades - Network World BBC/OU Open2.net - Can Gerry Robinson Fix The NHS? Google to fix blog noise problem The Register Tena Fix - Incontinence Windows Mobile 5.0 Fix Site - Home Bug Fix Weekend finished :: pnCommunity :: Support at your fingertips はてなブックマーク - FIX Your Freebie Fix - All the latest Freebies, Coupons and Online Deals Portail Internet de la Haute Autorité de santé - H-FIX PDS frontline: the wall street fix PBS Fix Your Money Screw-Ups - Kiplinger.com [Profil de fix] OverBlog - Le blog des blogs XML.com: Using XSLT to Fix Swing Mr. Fix It (2006) KompoZer - Easy web authoring Rob Galbraith DPI: EOS-1D Mark III sub-mirror fix announced in USA ... Indonesia's three divas fix the nation's finances International ... Objet Publicitaire : Magnet Magic fix - ALB01.com Windows Vista Team Blog : Partners helping fix Vista Software ... FOSSwire » Fix a Frozen System with the Magic SysRq Keys Why Blog Post Frequency Does Not Matter Anymore Marketing Profs ...