et je souhaiterai l'adapter pour du contenu flash (genre bandeau pub...ou eventuellement d'ailleur des jpg en changeant leur extension en swf puisqu'il sont reconu par flash.
voici le code :
| CODE |
| function ImageMax(chemin) { i1 = new Image; i1.src = chemin; html = '<html><head><title>work</title></head><body scroll="no" leftmargin="0" marginwidth="0" topmargin="0" marginheight="0" onBlur="top.close()"><IMG src="'+chemin+'" BORDER=0 NAME=ImageMax onLoad="window.resizeTo(document.ImageMax.width+10,document.ImageMax.height+80)"><p align=center><a href=# onclick=window.close();><font color=#FF0000 face=Arial, Helvetica, sans-serif size=1>Fermer</font></a><p></body></html>'; popupImage = window.open('','_blank','toolbar=0,location=0,directories=0,menuBar=0,scrollbars=0,resizable=1'); popupImage.document.open(); popupImage.document.write(html); popupImage.document.close() }; onclick="javascript:ImageMax('images/mais1.gif');" |
Je vous remercie tous d'avance et vous souhaite une bonne soirée.