Ce serait pas plutôt un paramètre de FireFox et IE ?
voir dans Outils/options/onglets.
Autre piste, une fonction javascript:
1 2 3 4 5 6 7 8 9 10 11 12 13
| // @param image img nom de l'image
// @return void
// @desc permet l'affichage d'image avec leur taille réellz
function PopupImage(img)
{
titre="Taille reelle"; w=open("",'image','width=400,height=400,toolbar=no,scrollbars=no,resizable=yes');
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+15,document.images[0].height+60); window.focus();} else { setTimeout('check()',250) } }</"+"SCRIPT>");
w.document.write("<BODY onload='checksize()' leftMargin=0 topMargin=0 marginwidth=0 marginheight=0><IMG src='"+img+"' border=0>");
w.document.write("");
w.document.write("</BODY></HTML>");
w.document.close();
} |
qui sera appelé dans ta page PHP:
<a href="javascript:PopupImage('<?php echo _URL_ROOT.'images/'.$tab_articles[$i]['copy_name']?>')" alt="image"><img class="right" alt="image" src="<?php echo _URL_ROOT.'images/'.$tab_articles[$i]['mini_copy']?>"/></a>
Je précise il faut remercier l'auteur => ce n'est pas moi.
Partager