Voilà mon problème, j'ouvre une page php à partir d'un lien, dans une fenêtre popup. Dans cette page je fait afficher une image en petite taille (mini_photo), je voudrais pouvoir la visualiser en grand, soit dans cette même popup mais avec un bouton de retour pour ne pas perdre la popup d'origine. Soit grâce à une nouvelle popup. Voila ce que j'ai déja fait en essayant d'ouvri dans une nouvelle popup mais ça ne marche pas...

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
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
 
 
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
 
<script language="text/JavaScript">
 
function zoom2(which, e, imgwidth, imgheight, fermer){
	if (ie||ns6){
		var image = '<img src="'+which+'" ';
		imgwidth = parseFloat(imgwidth);
		imgheight = parseFloat(imgheight);
 
		if (imgwidth > 400 && imgheight > 400) {
			if 	(imgwidth > imgheight) image += ' width="400px"';
			else image += ' height="400px"';
		}
		else if (imgwidth > 400) image += ' width="400px"';
		else if (imgheight > 400) image += ' height="400px"';
		else if (imgwidth < 200 && imgheight < 200) {
			if 	(imgwidth > imgheight) image += ' width="200px"';
			else image += ' height="200px"';
		}
		image += '>';
 
		crossobj=document.getElementById? document.getElementById("showimage") : document.all.showimage
		// ICI POUR REGLER LA POSITION DE LA LOUPE PAR RAPPORT A LA PAGE
		crossobj.style.left=350+"px"
		crossobj.style.top=210+"px"
 
 
		crossobj.innerHTML='<div align="right" id="dragbar"><span id="closetext" onClick="closepreview()">&raquo; '+fermer+'</span></div>'+image
		crossobj.style.visibility="visible"
		return false
	}
	else //if NOT IE 4+ or NS 6+, affiche image ds le navigateur en pleine page
		return true
}</script> 
 
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title><? echo TITLE; ?></title>
<link href="../CSS.css" rel="stylesheet" type="text/css">
</head>
<body bgcolor="BCC045">
<table cellpadding="5" cellspacing="0" border="0" width="100%">
<form name="form1" action="ajout.php" method="post">
<input type="hidden" name="id" value="<? echo $id; ?>" />
<tr><td class="titrerouge"><? echo $tab['titre']; ?></td><td align="right"><a href="javascript:document.form1.submit();" class="ajoutnoir"><? echo TEXT_AJOUT; ?></a><br />
		<a href="javascript:window.print();" class="ajoutnoir"><? echo TEXT_IMPRIMER; ?></a></td></tr>
<tr><td class="titre"><? echo $info['titre']; ?></td><td align="right" class="prix"><? if (session_is_registered(pro) && $pro == 'Y') echo format_prix($info['prix_pro']); else echo format_prix($info['prix']); ?></td></tr>
<tr>
 
	<? $requete = "SELECT photo FROM produit where id_produit='".$id."'";
		$cnx->fExecQuery($requete);
 
while($img = $cnx->fGetNextRecord()) { 
			$size = getimagesize('../photos/'.$img['photo']); 
	?>
 
 
	<a href="../photos/<? echo $img['photo']; ?>" onClick="return zoom2('../photos/<? echo $img['photo']; ?>',event, '<? echo $size[0]; ?>', '<? echo $size[1]; ?>', '<? echo TEXT_CLOSE; ?>')"><img src="../photos/mini_<? echo $img['photo']; ?>" /></a><br /><br />
 
	<? } ?>
merci de vos réponse et s'il y a n'importes quelles questions n'hésitez pas j'ai surement fait de nombreuses erreurs