bonjour
voici mon script pour afficher une grande image a partir d'une miniature dans une popup
function PopupImage(img) {
titre="Photo du concert";
w=open("",'image','width=400,height=400,toolbar=no,scrollbars=no,resizable=no');
w.document.write("<HTML><HEAD><TITLE>"+titre+"</TITLE></HEAD>");
w.document.write("<SCRIPT language=javascript>function checksize() { if (document.images[0].complete) { window.resizeTo(document.images[0].width+10,document.images[0].height+30); window.focus();} else { setTimeout('checksize()',250) } }</"+"SCRIPT>");
w.document.write("<BODY onload='checksize()' onblur='window.close()' onclick='window.close()' leftMargin=0 topMargin=0 marginwidth=0 marginheight=0>");
w.document.write("<TABLE width='100%' border='0' cellspacing='0' cellpadding='0' height='100%'><TR>");
w.document.write("<TD valign='middle' align='center'><IMG src='"+img+"' border=0 alt='Mon image'>");
w.document.write("</TD></TR></TABLE>");
w.document.write("</BODY></HTML>");
w.document.close();
}
$chemin="javascript:PopupImage('$imagechem','coupelle',$width,$height,false)";
Cela marche parfaitement sous IE( quand on descative le bloqueur de popup) et mozilla.
Comment faire pour que cela s'affiche sans avoir a descativer le bloqueur de popup.
Cela fait depuis des heures que j'essaie pas mal de solutions sans succes.
Merci