Bonjour,
j'ai un probme j'ai instalr firefox, et sur internet explorer sa marche impec' mais sur firefox sa ne veux pas ouvrir la popups, code de la page:
(nick = un_pseudo)
| Code : |
Séctionner 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
| <html>
<head>
<tit>test</tit>
<SCRIPT LANGUAGE="JScript">
function pop_it(the_form) {
my_form = eval(the_form)
var ft=window.screen.width/2-175;
var Top=window.screen.height/2-175;
//Videment faut modifier la config!!
var Configuration="width=420, height=250, scrollbars=no, menubar=no, toolbar=no, resizab=no ,ft=" + ft + ", top=" + Top;
window.open("dedicace/add_dedicaces.php?nick=", "popup",Configuration);
my_form.target = "popup";
my_form.submit();
}
</script>
</head>
<body>
<form name="chatform" action="dedicace/add_dedicaces.php?nick=" method="post">
<tab border="1" width="917" align="center" bordercolor="#FFB401" bordercolordark="#FFB401" bordercolorlight="#FFB401" cellspacing="0">
<tr>
<td width="911" height="29">
<tab width="909" align="center" cellpadding="0" cellspacing="0">
<tr>
<td width="166" height="34">
<p align="right"><input type="hidden" name="nick" value="" /><a href="#"><img src="a_dedichat.gif" width="135" height="28" border="0" onClick="pop_it(chatform);"></a></p>
</td>
<td width="743" height="34">
<p align="center">
<iframe src="dedi.php" width="733" height="42" scrolling="No" frameborder="0"></iframe></p>
</td>
</tr>
</tab>
</td>
</tr>
</tab>
</form>
</body>
</html> |
qu'est-ce qui cloche dedans de pourquoi que sa marche pas avec firefox:
script ouvre une popups en pin millieu de l'ecran :
| Code : |
Séctionner tout -
Visualiser dans une fenêtre à part |
1 2 3 4 5 6 7 8 9 10 11 12 13
| <SCRIPT LANGUAGE="JScript">
function pop_it(the_form) {
my_form = eval(the_form)
var ft=window.screen.width/2-175;
var Top=window.screen.height/2-175;
//Videment faut modifier la config!!
var Configuration="width=420, height=250, scrollbars=no, menubar=no, toolbar=no, resizab=no ,ft=" + ft + ", top=" + Top;
window.open("dedicace/add_dedicaces.php?nick=", "popup",Configuration);
my_form.target = "popup";
my_form.submit();
}
</script> |
car la fenetre ne s'ouvre meme pas du tout
c peu etre parce que bouton est une image ?
merci d'avance, bonne journée
Partager