- //Correction png en fonction du navigateur
- //
- <script>
- function DisplayPngByBrowser ( browser, img_path, width, height ) {
- var png_path;
- if (browser == 'Microsoft Internet Explorer') {
- document.write('<img src="/images/integration/blank.gif" style="width:'+width+'px; height:'+height+'px; filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src=\''+img_path+'\', sizingMethod=\'scale\');" >');
- }
- else if (browser == 'Netscape')
- document.write("<img src='"+img_path+"' />");
- else
- document.write("<img src='"+img_path+"' />");
-
- }
- </script>
- <script language="javascript">
- //a mettre dans le .html
- var path_png = DisplayPngByBrowser(navigator.appName, 'test_img.png', 152, 40 );
- </script>
//Correction png en fonction du navigateur
//
<script>
function DisplayPngByBrowser ( browser, img_path, width, height ) {
var png_path;
if (browser == 'Microsoft Internet Explorer') {
document.write('<img src="/images/integration/blank.gif" style="width:'+width+'px; height:'+height+'px; filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src=\''+img_path+'\', sizingMethod=\'scale\');" >');
}
else if (browser == 'Netscape')
document.write("<img src='"+img_path+"' />");
else
document.write("<img src='"+img_path+"' />");
}
</script>
<script language="javascript">
//a mettre dans le .html
var path_png = DisplayPngByBrowser(navigator.appName, 'test_img.png', 152, 40 );
</script>