IE6 PNG Fix using DD_belatedPNG with supporting repeated background


/ Published in: HTML
Save to your folder(s)

Start with a basic IE6 conditional comment. Add the javascript inside for IE6. Pay close attention to the parent child structure. If the image is by itself, include the parent element; example: "#element img".


Copy this code and paste it in your HTML
  1. <!--[if IE 6]>
  2. <link type="text/css" rel="stylesheet" href="ie6.css" media="screen" />
  3. <script type="text/javascript" src="js/DD_belatedPNG_0.0.8a-min.js"></script>
  4. <script>
  5. DD_belatedPNG.fix('.element with png, #elements with png');
  6. </script>
  7. <![endif]-->

URL: http://www.dillerdesign.com/experiment/DD_belatedPNG/

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.