salut à tous
J'ai un soucis pour une ouverture de popup à la position de mon clic sur le lien
j'ai un lien vers ma popup :
et je teste ce début de fonction mais rien à faire il me renvoit tjrs undefined !
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4 <a href=\"javascript:OuvrirPopup('modif_technos.php', '', 'resizable=yes, location=no, width=300, height=100, menubar=no, status=no, scrollbars=no, menubar=no',this)\"><img src='img/modif.gif' border=0></a>
je ne comprends 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 function OuvrirPopup(page,nom,option,e) { var x; var y; if(navigator.appName.substring(0,3) == "Net") {x = e.pageX;} else {x=event.x+document.body.scrollLeft;} if(navigator.appName.substring(0,3) == "Net") {y=e.pageY;} else {y=event.y+document.body.scrollTop;} alert(x+"/"+y); //var opt = option+"top="+y+",left="+x; //window.open(page,nom,opt); }
lerci pour votre aide
@+
Partager