Bonjour à tous,

J'ai besoin de votre aide, je ne trouve pas de solution

J'utilise le lien suivant
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
 
<a href="javascript:PopupImage('Photos/small_image12')">
<img src="Photos/image12.jpg" /a>
ce lien appelle la fonction javascript suivante :
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
 
<SCRIPT LANGUAGE="JavaScript">
<!--
function PopupImage(img) { 
 
titre="Photo"; 
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 place() { var X = document.body.clientHeight; var Y = document.body.clientWidth;var T=Math.round((screen.availHeight-X)/2);var L=Math.round((screen.availWidth-Y)/2);self.moveTo(L,T)}</script><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();place()' 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='Picture'>"); 
w.document.write("</TD></TR></TABLE>");
w.document.write("</BODY></HTML>"); 
w.document.close(); 
} 
//-->
</SCRIPT>
Et voici mon problème : lorsque je clique sur ce lien afin d'ouvrir la photo en pop-up, celle-ci ne s'ouvre qu'à moitié(une grande partie de la photo est coupée).

Quelle est la solution pour afficher cette photo entièrement?

Merci d'avance.