Browse Source

eviter un plantage ie si on a la bonne idee d'utiliser rien.gif comme image transparente

spip-1.9.2
Cerdic 16 years ago
parent
commit
cec874e18b
  1. 16
      win_png.htc

16
win_png.htc

@ -31,15 +31,15 @@ function fixImage() {
if ( ! new RegExp(blankSrc).test(src)) {
// backup old src
realSrc = src;
}
// test for png
if ( /\.png$/.test( realSrc.toLowerCase() ) ) {
// set blank image
element.src = blankSrc;
// set filter
element.runtimeStyle.filter = "progid:DXImageTransform.Microsoft.AlphaImageLoader(src='" +
src + "',sizingMethod='image')";
// test for png
if ( /\.png$/.test( realSrc.toLowerCase() ) ) {
// set blank image
element.src = blankSrc;
// set filter
element.runtimeStyle.filter = "progid:DXImageTransform.Microsoft.AlphaImageLoader(src='" +
src + "',sizingMethod='image')";
}
}
}

Loading…
Cancel
Save