flash.moe/public/assets/fixpng.js
2020-08-20 00:02:37 +00:00

10 lines
No EOL
355 B
JavaScript

/*@if (@_jscript_version >= 5.5)
for(i = 0; i < document.images.length; i++) {
var s = document.images[i].src;
if(s.indexOf('.png') > 0) {
document.images[i].src = '/assets/pixel.gif';
document.images[i].style.filter = 'progid:DXImageTransform.Microsoft.AlphaImageLoader(src=\'' + s + '\', sizingMethod=\'scale\')';
}
}
@end
*/