Bonjour... .. .
J'ais un problème genre "tout con" mais là pour une fois je sèche... je m'explique... je veux ouvrir un popup, par exemple pour afficher une image taille réel... bref rien de mirobolant... voici le code... .. .
en js ça donne...
et en html tout simplement...
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 function openPopup(url,name,width,height,returnwindow) { var options = "width=" + width + ",height=" + height + ",toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=no,copyhistory=no"; var new_window = window.open(url, name, options); new_window.focus(); if (returnwindow) return new_window; } function viewPhoto(target,width,height) { width = (width) ? width+40 : 500; height = (height) ? height+40 : 400; target = target.substring(target.lastIndexOf('/')+1); openPopup("modules/viewPhoto.html?"+btoa("img="+target),'',width,height); }
sous Mozilla/firefox & Co pas de problème mais sous Ie ça bloque... il attend un objet ligne 548... la ligne 548 correspondant à la ligne suivant l'appel du popup dans la fonction viewPhoto bref la dernière ligne de cette même fonction... .. .
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4 <a href="lien_vers_la_photo_taille_normal" onClick="javascript:viewPhoto(this.href,600,450); return false;"> <img src="lien_vers_la_photo_miniature" ... /> </a>
Voila si quelqu'un voit quelque chose que je n'ais pas vu... .. .
Merci d'avance... .. .
@ tchaOo°
ps : je test IE 7 beta2 en ce moment... ça vient peut être de là... .. .
Partager