In Danland presentation is writed that Danlan use: jQuery pngFix Plugin by Andreas Eberhard.
I have made all of my files which need transparency as PNG file. Than I have seen that png file have no transparency on IE6.
Sorry if my question is dumb but I'm not good on javascript.
I have added in danland.info:
scripts[] = scripts/jquery.pngFix.js
Now I try to Activate pngFix as is writed on http://jquery.andreaseberhard.de/pngFix/ only when browser is IE.
I suppose is necessary to include in template.php file something like:
drupal_add_js('$(function(){$('div.logo').pngFix();});' );
Could you give help with this issue, or show an example how you used pngFix.
Thanks
Comments
Comment #1
danpros CreditAttribution: danpros commentedHi,
First if you only want the script loaded if the browser is IE6 then do not call that via danland.info but use template.php instead.
In Danland 7.x template.php already available this code
so it should become like this
and last add the folowing code to the jquery.pngFix.js
Dan
Comment #2
ccflor CreditAttribution: ccflor commentedThank you very much. I worked almost one day to solve this problem and now with your help it's ready in 5 minutes.