bonjour,

voici une fonction PopupImage qui affiche l'image en popup.

Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
<SCRIPT LANGUAGE="JavaScript">
function PopupImage(img) {
	w=open("",'image','weigth=toolbar=no,scrollbars=no,resizable=yes,width=300,height=300');	
	w.document.write("<BODY onblur=\"window.close();\"><IMG src='"+img+"'");
	w.document.write("</BODY>");
	w.document.close();
}
</script>
<A href="javascript:PopupImage('1.jpg')"> <img src="2.jpg" border='0'  /></A>&nbsp;</td>
je veux quand j'appel la fonction le popup prend la forme de l'image si l'image a width='300' height='300' o popub s'affiche en taille de l'image width='300' height='300' . et Merci.