Bonjour, en utilisant prototype window sur une page html, j'ajoute le même script plusieurs fois dans la page avec une url différente pour ouvrir une pop up,
et il m'ouvre à chaque fois la dernière url créée.Voici la page
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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
<!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><META NAME="KEYWORDS" CONTENT="accueil, lycée, ateliers, midi, plusieurs, proposés, élèves, pendant, temps, pause, informatique, lieu, lundi, animé, carole, professeurs, saint-denis, linguistique, différents, langue, soutien, scolaire, forme, fort, programmé, jeux, cartes, vendredi, anne, bregnard, échecs, jeudi, membres, club, saint-omer, chorale, françoise, flandrin, orchestre, rené, burzicki, directeur">
<META http-equiv="Content-Type" CONTENT="text/html; charset=iso-8859-1" />
<title>Document sans nom</title>
<style type="text/css">
<!--
.Style3 {
	color: #FF3300;
	font-weight: bold;
}
.Style5 {font-size: smaller}
-->
</style>
<link href="../public.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="../javascripts/prototype.js"> </script>
	<script type="text/javascript" src="../javascripts/effects.js"> </script>
	<script type="text/javascript" src="../javascripts/window.js"> </script>
	<script type="text/javascript" src="../javascripts/debug.js"> </script>
	<link href="../themes/default.css" rel="stylesheet" type="text/css"/>
	<link href="../themes/alert.css" rel="stylesheet" type="text/css"/>
	<link href="../themes/alphacube.css" rel="stylesheet" type="text/css"/>
    <style type="text/css">
<!--
.Style6 {color: #FF3300}
-->
    </style>
</head>
<body><div id="page">
<div align="left">
  <p><a href="../accueil.html" class="Style3">Accueil</a> &gt; Vie du Lyc&eacute;e &gt; Ateliers du midi <span class="Style5"></span></p>
</div>
  <div class="titre">
    <div align="left">ATELIERS DU MIDI </div>
  </div>
</div>
  <blockquote>
    <p align="left">Plusieurs ateliers sont propos&eacute;s  aux &eacute;l&egrave;ves pendant le temps de pause du midi. </p>
    <table width="500" border="0" align="center" cellpadding="10" cellspacing="0" bordercolor="#FF3300">
      <tr>
        <td width="150"><div align="center"><img src="../images/theatreaffiche.gif" width="107" height="151" /></div></td>
        <td><p>L'<strong>atelier th&eacute;&acirc;tre</strong> a lieu le lundi midi. Il est anim&eacute; par Mme Dominique HOCHART, Melle Delphine SANSEN et Mr Jean-Baptiste LEGRAND professeurs au Lyc&eacute;e Saint-Denis. </p>
</div>
<div align="center"><br/>
    <a href="#" class="Style6" onclick="openAjaxConfirm()">Détail</a><br/>
 
    <script type="text/javascript">
 
 
  function openAjaxConfirm() {
      Dialog.confirm({url: "theatre.html", options: {method: 'get'}}, 
                     {top: 10, width:500, className: "alphacube", okLabel: "OK", cancelLabel:"Fermer"})    
  }
  </script>
 
</div>
  </td>
      </tr>
    </table>
    <p>&nbsp;</p>
    <table width="500" border="0" align="center" cellpadding="10" cellspacing="0" bordercolor="#FF3300">
      <tr>
        <td width="150"><div align="center"><img src="../../Documents and Settings/philippe/Mes documents/Mes images/anti-racisme.jpg" width="149" height="96" /></div></td>
        <td>L'<strong>atelier Nord Sud </strong>  est anim&eacute; par Mme Fran&ccedil;oise FLANDRIN (prof. de SVT), Melle Christiane GLACHON (prof. d'Economie Droit), Mme Huguette GOSSELIN (Surveillante d'Internat) et Mme Sylvie LEMAITRE (Directrice de la Vie Scolaire). 
          <div align="center"><br/>
    <a href="#" class="Style6" onclick="openAjaxConfirm()">Détail</a><br/>
 
    <script type="text/javascript">
 
 
  function openAjaxConfirm() {
      Dialog.confirm({url: "nordsud.html", options: {method: 'get'}}, 
                     {top: 10, width:800, className: "alphacube", okLabel: "OK", cancelLabel:"Fermer"})    
  }
  </script>
 
</div></td>
      </tr>
    </table>
    <p>&nbsp;</p>
    <table width="500" border="0" align="center" cellpadding="10" cellspacing="0" bordercolor="#FF3300">
      <tr>
        <td width="150"><div align="center"><img src="../../Documents and Settings/philippe/Mes documents/Mes images/sante.jpg" width="166" height="170" /></div></td>
        <td><p>L'<strong>atelier sant&eacute; </strong> a lieu lejeudi de 15h40 &agrave;16h35. Il est anim&eacute; par Mme Fran&ccedil;oise FLANDRIN (prof. de SVT). </p>
          <div align="center"><br/>
              <a href="#" class="Style6" onclick="openAjaxConfirm()">D&eacute;tail</a><br/>
              <script type="text/javascript">
 
 
  function openAjaxConfirm() {
      Dialog.confirm({url: "sante.html", options: {method: 'get'}}, 
                     {top: 10, width:500, className: "alphacube", okLabel: "OK", cancelLabel:"Fermer"})    
  }
            </script>
          </div>          
        </td>
      </tr>
    </table>
    <p>&nbsp;</p>
    <table width="500" border="0" align="center" cellpadding="10" cellspacing="0" bordercolor="#FF3300">
      <tr>
        <td width="150"><div align="center"><img src="../images/42-17448030.jpg" width="127" height="127" /></div></td>
        <td>L'<strong>atelier de soutien</strong> scolaire est anim&eacute; par les professeurs de l'&eacute;tablissement sous forme de temps fort programm&eacute;. </td>
      </tr>
    </table>
    <p>&nbsp;</p>
    <table width="500" border="0" align="center" cellpadding="10" cellspacing="0" bordercolor="#FF3300">
      <tr>
        <td width="150"><div align="center"><img src="../images/cartes.jpg" width="110" height="74" /></div></td>
        <td><p>L'<strong>atelier jeux</strong> de cartes a lieu le vendredi midi. Il est anim&eacute; par Mme Anne BREGNARD, professeur au Lyc&eacute;e Saint-Denis. </p>
        </td>
      </tr>
    </table>
    <p>&nbsp;</p>
    <table width="500" border="0" align="center" cellpadding="10" cellspacing="0" bordercolor="#FF3300">
      <tr>
        <td width="150"><div align="center"><img src="../images/echecs.jpg" width="120" height="97" /></div></td>
        <td>L'<strong>atelier &eacute;checs</strong> a lieu le jeudi midi. Il est anim&eacute; par des membres du club &eacute;checs de Saint-Omer. </td>
      </tr>
    </table>
    <p>&nbsp;</p>
    <table width="500" border="0" align="center" cellpadding="10" cellspacing="0" bordercolor="#FF3300">
      <tr>
        <td width="150"><div align="center"><img src="../images/chorale.jpg" width="110" height="73" /></div></td>
        <td><p>L'<strong>atelier chorale et orchestre </strong> a lieu le lundi de 12h30 &agrave; 13h30. Il est anim&eacute; par Mme Fran&ccedil;oise FLANDRIN, professeur de SVT au Lyc&eacute;e Saint-Denis. </p>
          <div align="center"><br/>
              <a href="#" class="Style6" onclick="openAjaxConfirm()">D&eacute;tail</a><br/>
              <script type="text/javascript">
 
 
  function openAjaxConfirm() {
      Dialog.confirm({url: "chorale.html", options: {method: 'get'}}, 
                     {top: 10, width:500, className: "alphacube", okLabel: "OK", cancelLabel:"Fermer"})    
  }
            </script>
          </div>          
        </td>
      </tr>
    </table>
    <p>&nbsp;</p>
    <p>&nbsp;</p>
    <p align="left">&nbsp;</p>
    <p align="left">&nbsp;</p>
</blockquote>
En clair, il y a quatre url différentes : theatre.html, Nordsud.html, sante.html et chorale.html, j'ai créé le script chorale.html en dernier et sur les trois autres liens il m'ouvre toujours la page chorale.html
Pouvez-vous m'aider ?
Merci