PNG and fixes - other approach
Posted: Thu Sep 24, 2009 9:33 am
Not a question but a note to some developers/builders
I see questions around about how to fix png. Most answer with "use pngfix" from Twinhelix.
Although still usefull in complex situation, I switched to BelatedPNG by DillerDesign.
1) You need the script, google it, find it, upload it (I usually upload it to the root)
2) Post this piece of code (in the template)
DD_belatedPNG.fix(' YOURELEMENTS');
3) Adapt the above code where it says: YOURELEMENTS,
let's say to the styles/tags below use a png in the css, and thus needs to be processed
.example1,
.example2,
img,
#content div,
#menu'
The the line becomes:
DD_belatedPNG.fix('.example1, .example2, img, #content div, #menu');
That's it!
More info:
http://www.dillerdesign.com/experiment/DD_belatedPNG/
I see questions around about how to fix png. Most answer with "use pngfix" from Twinhelix.
Although still usefull in complex situation, I switched to BelatedPNG by DillerDesign.
1) You need the script, google it, find it, upload it (I usually upload it to the root)
2) Post this piece of code (in the template)
DD_belatedPNG.fix(' YOURELEMENTS');
3) Adapt the above code where it says: YOURELEMENTS,
let's say to the styles/tags below use a png in the css, and thus needs to be processed
.example1,
.example2,
img,
#content div,
#menu'
The the line becomes:
DD_belatedPNG.fix('.example1, .example2, img, #content div, #menu');
That's it!
More info:
http://www.dillerdesign.com/experiment/DD_belatedPNG/