1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
|
var fois=0
function Affiche_figure(grandeImage,texte)
{
var W=(grandeImage.width)+20+"px";
var H=(grandeImage.height)+20+"px";
html = '<HTML><HEAD> <TITLE>Image</TITLE><meta http-equiv="Pragma" content="no-cache"></HEAD><BODY onBlur="window.close()"leftmargin=0 marginwidth=0 topmargin=0 marginheigth=0 oncontextmenu="return false"><CENTER>'+
'<a href="#" onClick="window.close()"><IMG SRC="'+grandeImage+'" BORDER=0 alt="'+texte+'" border="0" > </a></CENTER></BODY></HTML>';
if (fois == 1 ) ouvrirImage.close();
ouvrirImage = window.open('','_blank','toolbar=0,location=0,menuBar=0,scrollbars=0,resizable=0,height='+H+', width='+W+' ');
ouvrirImage.document.write(html);
fois=1;
} |
Partager