Bonjour,
j'ai un probleme j'ai installer firefox, et sur internet explorer sa marche impec' mais sur firefox sa ne veux pas ouvrir la popups, le code de la page:
(nick = un_pseudo)
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 <html> <head> <title>test</title> <SCRIPT LANGUAGE="JScript"> function pop_it(the_form) { my_form = eval(the_form) var Left=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, resizable=no ,left=" + Left + ", 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"> <table border="1" width="917" align="center" bordercolor="#FFB401" bordercolordark="#FFB401" bordercolorlight="#FFB401" cellspacing="0"> <tr> <td width="911" height="29"> <table 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> </table> </td> </tr> </table> </form> </body> </html>
qu'est-ce qui cloche dedans de pourquoi que sa marche pas avec firefox:
le script ouvre une popups en plein millieu de l'ecran :
car la fenetre ne s'ouvre meme pas du tout
Code : Sélectionner 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 Left=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, resizable=no ,left=" + Left + ", top=" + Top; window.open("dedicace/add_dedicaces.php?nick=", "popup",Configuration); my_form.target = "popup"; my_form.submit(); } </script>
c peu etre parce que le bouton est une image ?
merci d'avance, bonne journée
Partager