bonjours, je suis en trian de developper un mod pour PHPBB2, et, je me retrouve confronté a mon maque de conniassances en CSS.
je voudrait positionnet un chat, tout en haut de ma page, en utilisant toute la largeure de celle ci.

cependant, bien qu'utilisant des div, je n'y arrive pas.

voici le bout de code que je dvoudrait placer sur une seule ligne :
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
<!-- le code du chat. il y a aussi les script dnas le head de la page  soit on affiche lle logo, soit on affiche le caht-->						
 
<form id="formChat" style="display:none; align=left; class="nonMerci">
<div>
    <div id="divChat" style="height: 200px; width: 100%;" align="center"> 
        <div id="salon0" style="height: 100px; width: 100%;overflow: scroll;display : none" align="left" ><!-- <input type=text id="chatText" style="height:100; width:300"/> -->
            <span id_msg=-1>
                chat : 
            </span> 
        </div>
    </div>
    <div id="infos" style="align=right"> 
  		<select id="users" size="4" type="text">
  		<!-- les options seront completées par DOM et xhr -->
  		</select>
         <select id="listeSalles" onchange="javascript:selectChanged()">
           <option value ="0">Choix du salon</option>          
         </select>
  	</div>    
    <input style="width: 400px;" id="msg" type="text" onKeyPress="if (event.keyCode == 13) {sendMsg(); }" > 
	<input value="OK" name="OK" onclick="javascript:sendMsg()" type="button">
	<input value="MAJ" name="MAJ" onclick="javascript:boucle()" type="button"> </div>
</div>
</form>										
<!-- fin du code du chat -->
je sait que je devrait externaliser les styles, via une CSS, mais je le ferait plus tard.

voici le code de ma page en entier :
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
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html dir="{S_CONTENT_DIRECTION}">
<head>
<meta http-equiv="Content-Type" content="text/html; charset={S_CONTENT_ENCODING}">
<meta http-equiv="Content-Style-Type" content="text/css">
{META}
{NAV_LINKS}
<title>{SITENAME} :: {PAGE_TITLE}</title>
<!-- link rel="stylesheet" href="templates/subSilver/{T_HEAD_STYLESHEET}" type="text/css" -->
<style type="text/css">
<!--
/*
  The original subSilver Theme for phpBB version 2+
  Created by subBlue design
  http://www.subBlue.com
 
  NOTE: These CSS definitions are stored within the main page body so that you can use the phpBB2
  theme administration centre. When you have finalised your style you could cut the final CSS code
  and place it in an external file, deleting this section to save bandwidth.
*/
 
/* General page style. The scroll bar colours only visible in IE5.5+ */
body { 
	background-color: {T_BODY_BGCOLOR};
	scrollbar-face-color: {T_TR_COLOR2};
	scrollbar-highlight-color: {T_TD_COLOR2};
	scrollbar-shadow-color: {T_TR_COLOR2};
	scrollbar-3dlight-color: {T_TR_COLOR3};
	scrollbar-arrow-color:  {T_BODY_LINK};
	scrollbar-track-color: {T_TR_COLOR1};
	scrollbar-darkshadow-color: {T_TH_COLOR1};
}
 
/* General font families for common tags */
font,th,td,p { font-family: {T_FONTFACE1} }
a:link,a:active,a:visited { color : {T_BODY_LINK}; }
a:hover		{ text-decoration: underline; color : {T_BODY_HLINK}; }
hr	{ height: 0px; border: solid {T_TR_COLOR3} 0px; border-top-width: 1px;}
 
/* This is the border line & background colour round the entire page */
.bodyline	{ background-color: {T_TD_COLOR2}; border: 1px {T_TH_COLOR1} solid; }
 
/* This is the outline round the main forum tables */
.forumline	{ background-color: {T_TD_COLOR2}; border: 2px {T_TH_COLOR2} solid; }
 
/* Main table cell colours and backgrounds */
td.row1	{ background-color: {T_TR_COLOR1}; }
td.row2	{ background-color: {T_TR_COLOR2}; }
td.row3	{ background-color: {T_TR_COLOR3}; }
 
/*
  This is for the table cell above the Topics, Post & Last posts on the index.php page
  By default this is the fading out gradiated silver background.
  However, you could replace this with a bitmap specific for each forum
*/
td.rowpic {
		background-color: {T_TD_COLOR2};
		background-image: url(templates/subSilver/images/{T_TH_CLASS3});
		background-repeat: repeat-y;
}
 
/* Header cells - the blue and silver gradient backgrounds */
th	{
	color: {T_FONTCOLOR3}; font-size: {T_FONTSIZE2}px; font-weight : bold; 
	background-color: {T_BODY_LINK}; height: 25px;
	background-image: url(templates/subSilver/images/{T_TH_CLASS2});
}
 
td.cat,td.catHead,td.catSides,td.catLeft,td.catRight,td.catBottom {
			background-image: url(templates/subSilver/images/{T_TH_CLASS1});
			background-color:{T_TR_COLOR3}; border: {T_TH_COLOR3}; border-style: solid; height: 28px;
}
 
/*
  Setting additional nice inner borders for the main table cells.
  The names indicate which sides the border will be on.
  Don't worry if you don't understand this, just ignore it :-)
*/
td.cat,td.catHead,td.catBottom {
	height: 29px;
	border-width: 0px 0px 0px 0px;
}
th.thHead,th.thSides,th.thTop,th.thLeft,th.thRight,th.thBottom,th.thCornerL,th.thCornerR {
	font-weight: bold; border: {T_TD_COLOR2}; border-style: solid; height: 28px;
}
td.row3Right,td.spaceRow {
	background-color: {T_TR_COLOR3}; border: {T_TH_COLOR3}; border-style: solid;
}
 
th.thHead,td.catHead { font-size: {T_FONTSIZE3}px; border-width: 1px 1px 0px 1px; }
th.thSides,td.catSides,td.spaceRow	 { border-width: 0px 1px 0px 1px; }
th.thRight,td.catRight,td.row3Right	 { border-width: 0px 1px 0px 0px; }
th.thLeft,td.catLeft	  { border-width: 0px 0px 0px 1px; }
th.thBottom,td.catBottom  { border-width: 0px 1px 1px 1px; }
th.thTop	 { border-width: 1px 0px 0px 0px; }
th.thCornerL { border-width: 1px 0px 0px 1px; }
th.thCornerR { border-width: 1px 1px 0px 0px; }
 
/* The largest text used in the index page title and toptic title etc. */
.maintitle	{
	font-weight: bold; font-size: 22px; font-family: "{T_FONTFACE2}",{T_FONTFACE1};
	text-decoration: none; line-height : 120%; color : {T_BODY_TEXT};
}
 
/* General text */
.gen { font-size : {T_FONTSIZE3}px; }
.genmed { font-size : {T_FONTSIZE2}px; }
.gensmall { font-size : {T_FONTSIZE1}px; }
.gen,.genmed,.gensmall { color : {T_BODY_TEXT}; }
a.gen,a.genmed,a.gensmall { color: {T_BODY_LINK}; text-decoration: none; }
a.gen:hover,a.genmed:hover,a.gensmall:hover	{ color: {T_BODY_HLINK}; text-decoration: underline; }
 
/* The register, login, search etc links at the top of the page */
.mainmenu		{ font-size : {T_FONTSIZE2}px; color : {T_BODY_TEXT} }
a.mainmenu		{ text-decoration: none; color : {T_BODY_LINK};  }
a.mainmenu:hover{ text-decoration: underline; color : {T_BODY_HLINK}; }
 
/* Forum category titles */
.cattitle		{ font-weight: bold; font-size: {T_FONTSIZE3}px ; letter-spacing: 1px; color : {T_BODY_LINK}}
a.cattitle		{ text-decoration: none; color : {T_BODY_LINK}; }
a.cattitle:hover{ text-decoration: underline; }
 
/* Forum title: Text and link to the forums used in: index.php */
.forumlink		{ font-weight: bold; font-size: {T_FONTSIZE3}px; color : {T_BODY_LINK}; }
a.forumlink 	{ text-decoration: none; color : {T_BODY_LINK}; }
a.forumlink:hover{ text-decoration: underline; color : {T_BODY_HLINK}; }
 
/* Used for the navigation text, (Page 1,2,3 etc) and the navigation bar when in a forum */
.nav			{ font-weight: bold; font-size: {T_FONTSIZE2}px; color : {T_BODY_TEXT};}
a.nav			{ text-decoration: none; color : {T_BODY_LINK}; }
a.nav:hover		{ text-decoration: underline; }
 
/* titles for the topics: could specify viewed link colour too */
.topictitle,h1,h2	{ font-weight: bold; font-size: {T_FONTSIZE2}px; color : {T_BODY_TEXT}; }
a.topictitle:link   { text-decoration: none; color : {T_BODY_LINK}; }
a.topictitle:visited { text-decoration: none; color : {T_BODY_VLINK}; }
a.topictitle:hover	{ text-decoration: underline; color : {T_BODY_HLINK}; }
 
/* Name of poster in viewmsg.php and viewtopic.php and other places */
.name			{ font-size : {T_FONTSIZE2}px; color : {T_BODY_TEXT};}
 
/* Location, number of posts, post date etc */
.postdetails		{ font-size : {T_FONTSIZE1}px; color : {T_BODY_TEXT}; }
 
/* The content of the posts (body of text) */
.postbody { font-size : {T_FONTSIZE3}px; line-height: 18px}
a.postlink:link	{ text-decoration: none; color : {T_BODY_LINK} }
a.postlink:visited { text-decoration: none; color : {T_BODY_VLINK}; }
a.postlink:hover { text-decoration: underline; color : {T_BODY_HLINK}}
 
/* Quote & Code blocks */
.code { 
	font-family: {T_FONTFACE3}; font-size: {T_FONTSIZE2}px; color: {T_FONTCOLOR2};
	background-color: {T_TD_COLOR1}; border: {T_TR_COLOR3}; border-style: solid;
	border-left-width: 1px; border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px
}
 
.quote {
	font-family: {T_FONTFACE1}; font-size: {T_FONTSIZE2}px; color: {T_FONTCOLOR1}; line-height: 125%;
	background-color: {T_TD_COLOR1}; border: {T_TR_COLOR3}; border-style: solid;
	border-left-width: 1px; border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px
}
 
/* Copyright and bottom info */
.copyright		{ font-size: {T_FONTSIZE1}px; font-family: {T_FONTFACE1}; color: {T_FONTCOLOR1}; letter-spacing: -1px;}
a.copyright		{ color: {T_FONTCOLOR1}; text-decoration: none;}
a.copyright:hover { color: {T_BODY_TEXT}; text-decoration: underline;}
 
/* Form elements */
input,textarea, select {
	color : {T_BODY_TEXT};
	font: normal {T_FONTSIZE2}px {T_FONTFACE1};
	border-color : {T_BODY_TEXT};
}
 
/* The text input fields background colour */
input.post, textarea.post, select {
	background-color : {T_TD_COLOR2};
}
 
input { text-indent : 2px; }
 
/* The buttons used for bbCode styling in message post */
input.button {
	background-color : {T_TR_COLOR1};
	color : {T_BODY_TEXT};
	font-size: {T_FONTSIZE2}px; font-family: {T_FONTFACE1};
}
 
/* The main submit button option */
input.mainoption {
	background-color : {T_TD_COLOR1};
	font-weight : bold;
}
 
/* None-bold submit button */
input.liteoption {
	background-color : {T_TD_COLOR1};
	font-weight : normal;
}
 
/* This is the line in the posting page which shows the rollover
  help line. This is actually a text box, but if set to be the same
  colour as the background no one will know ;)
*/
.helpline { background-color: {T_TR_COLOR2}; border-style: none; }
 
/* Import the fancy styles for IE only (NS4.x doesn't use the @import function) */
@import url("templates/subSilver/formIE.css"); 
-->
</style>
<!-- BEGIN switch_enable_pm_popup -->
<script language="Javascript" type="text/javascript">
<!--
	if ( {PRIVATE_MESSAGE_NEW_FLAG} )
	{
		window.open('{U_PRIVATEMSGS_POPUP}', '_phpbbprivmsg', 'HEIGHT=225,resizable=yes,WIDTH=400');;
	}
//-->
</script>
<!-- END switch_enable_pm_popup -->
 
<!-- le code JS du chat :  -->
 
  <script>
//script issu de developpez.com
//il esrt a enlever les element inutils du DOM : c'est genant car IE et FF ne se comprte pas pareil, donc ca donne una rbre identique pour les 2, si on les nettoie (cf : FAQ javascript)
/* ex. de la FAQ javascript :
|--list |--" " |--tel | |--nom | | |--"abdcef" | |--id | |--"123" |--" " |--tel | |--nom | | |--"xyz" | |--id | |--"124" |--" "
*/
function go(c){
    if(!c.data.replace(/\s/g,''))
    c.parentNode.removeChild(c);
}
function cleanXML(d){
    var bal=d.getElementsByTagName('*');
    for(i=0;i<bal.length;i++){
	a=bal[i].previousSibling;
	if(a && a.nodeType==3)
	    go(a);
	b=bal[i].nextSibling;
	if(b && b.nodeType==3)
	    go(b);
    }
    return d;
}
</script> 
<script type="text/javascript">
	//initialisation de quelques variables
	var idSalonADemander = new Array();  //tableau stockant les noms des salons a mettre en file d'atente, afin de connaitre leur nom
	var idUserADemander = new Array(); //tableau des nom d'user a demander
	var lastSalonAffiché = 0 //cette variable permet de savoir qeul etait le salon anciennement affiché
	var var_id_user = {L_USERID}//on le definit ici, car plusieurs choix sont posssibles, et je reisque d'en changer.
 
	//mise en place du XHR
    var xhrMAJ = null; 
    var xhrMSG = null; 
    var xhrNomSalon = null;
	var xhrNomUser = null;
    if(window.XMLHttpRequest) {// Firefox et autres
	xhrMAJ = new XMLHttpRequest(); 
	xhrMSG = new XMLHttpRequest(); 
    xhrNomSalon = new XMLHttpRequest(); 
	xhrNomUser = new XMLHttpRequest(); 
    } else if (window.ActiveXObject) { // Internet Explorer 
	try {
	    xhrMAJ = new ActiveXObject("Msxml2.XMLHTTP");
        xhrMSG = new ActiveXObject("Msxml2.XMLHTTP"); 
        xhrNomSalon = new ActiveXObject("Msxml2.XMLHTTP"); 
		xhrNomUser = new ActiveXObject("Msxml2.XMLHTTP"); 
	} catch (e) {
	    xhrMAJ = new ActiveXObject("Microsoft.XMLHTTP");
	    xhrMSG = new ActiveXObject("Microsoft.XMLHTTP");
        xhrNomSalon = new ActiveXObject("Microsoft.XMLHTTP");
		xhrNomUser = new ActiveXObject("Microsoft.XMLHTTP");
	}
    } else { // XMLHttpRequest non supporté par le navigateur 
	alert("Votre navigateur ne supporte pas les objets XMLHTTPRequest..."); 
    xhrMAJ = false; 
    xhrMSG = false; 
    xhrNomSalon = false; 
	xhrNomUser = false;
    }
</script> 
 
<script type="text/javascript">	
function boucle() {
	//cette fonction tourne en boucle
	receiveInfo()
	if (idSalonADemander.length > 0) {
		demandeMAJNomSalon()
	}
}
var timer = setInterval(function(){boucle()},20000)
</script>
 
<script type="text/javascript">	
function sendMsg() {
    //on envoie juste les données, on ne se preocuppe pas de leur reception ou non
    xhrMSG.open("GET","chat/receiveMSG.php?id_salon=" + document.getElementById("listeSalles").selectedIndex +"&id_user=" + var_id_user + "&msg=" + document.getElementById("msg").value,true);
    xhrMSG.send(null);
    document.getElementById("msg").value = "";
}
</script> 
 
 
<script type="text/javascript">
function receiveInfo() {
    xhrMAJ.onreadystatechange = function(){
	// On ne fait quelque chose que si on a tout reçu et que le serveur est ok
	if(xhrMAJ.readyState == 4 && xhrMAJ.status == 200) {
	    //on recoit la reponse du serveur, et on traite le XML
	    xmlCleaned = cleanXML(xhrMAJ.responseXML.documentElement);
	    //le XML est netoyé on peut donc tout créer les fentes de discussion a partir de lui.
	    traiteXML(xmlCleaned);
	}
    }
    xhrMAJ.open("GET","chat/sendMAJ.php?maj=1&user=" + var_id_user,true);
    xhrMAJ.send(null);
}
</script> 
 
 
<script type="text/javascript">	
function traiteXML(xml) {
    //on va crée les fenetre des chat qui contient le texte
    // la methodoklogie n'est pas encore totalement fixée pour le moment, masi ej pense utiliserplein de div, et les mettre invisibles, pour les salon qu'on ne consulte pas.
    // a suppirmmer :firstChild = xml.firstChild;
    salons = xml.getElementsByTagName('salon');//dans le xml
    for (i=0;i<salons.length;i++) {	    
        //on verifie si le salon esiste deja ou pas, si il existe, on positione la var dessus, sinon, on le crée
	    // a implementer
	    salonsExistants = document.getElementById("salon" + salons[i].attributes[0].nodeValue);//si y'a pas de salon portant l'ID : "salon" + le n°contenu dans le XML
	    try  {
			//si ce try passe, ca veut dire que le salon existe deja
		    salonsExistants.length;
            divEncours = salonsExistants;
	    } catch(erreure) {
			//si le salon n'existe pas, on en crée un nouveau
			divEncours = createNewSalon (salons, xml) ;
	    }	
        //on va ecrire tous les message de ce salon, dansla page html
        message = salons[i].childNodes;
        //on recupere le dernier element ecrit dans le div du chat dans lequel on va ecrire
        if (divEncours.hasChildNodes()) {
            //si il a des sous noeuds, on lit le dernier, pour trouver le dernier element
            id = divEncours.lastChild.getAttribute("id_msg")
        } else {
            //on a pas encore ecrit quoi que ce soit.
            id = -1;
        }
	    for (j=0; j < message.length; j++) {	 
    	    //on est dans chaque item du salon
	        //on a consulter le dernier element, et on ajoute tous ceux qui + granq que son id (var id)
            if (parseInt (id) < parseInt (message[j].getAttribute("id_msg")) ) { 
                spanEnCours = document.createElement("span");
                //alert(message[j].getAttribute("msg"));
                spanEnCours.innerHTML = message[j].getAttribute("msg") + "</br>";
                spanEnCours.setAttribute("id_msg", message[j].getAttribute("id_msg"))
                divEncours.appendChild(spanEnCours)
            }
	    }
    }
}
</script>
 
<script type="text/javascript">
function createNewSalon (salons, xml) {
    //il faut créer le salon il n'existe pas
    //a faire var divEncours = document.createElement('div'); divEncours.name = salons[i].nodename;
    var var_id_salon = salons[i].attributes[0].nodeValue;
    var divEncours = document.createElement("div");        
    divEncours.id = "salon" + var_id_salon;
    divEncours.enabled = false; //il ne sera pas visible,et n'interrera pas sur la mise en page	
    divEncours.style.overflow  = "scroll";
	divEncours.style.display = "none";			
    divEncours.style.height = "100px";
    divEncours.style.width = "100%";
 
    var spanEnCours = document.createElement("span");
    spanEnCours.setAttribute("id_msg", -1)
    spanEnCours.innerHTML = "chat :" + "</br>";
 
	divEncours.appendChild(spanEnCours);
 
    //et on insere le tout au debut du div de chat d'id 0
    divChatParDefaut = document.getElementById("salon0");
    document.getElementById("divChat").insertBefore(divEncours,divChatParDefaut); 
 
    //ensuite, on ajoute le nouveau salon dans la liste deroulante des salons existants
    var newOption = document.createElement("option");
    newOption.value = var_id_salon;
    newOption.id = "salonEnChargement" + var_id_salon;
    newOption.innerHTML = "nom en chargement : salon" + var_id_salon;
    //on lance une requete pour connaitre le nom de ce salon
    document.getElementById("listeSalles").appendChild(newOption);
    //on ajoute cet id dans la liste de ceux a demander
	idSalonADemander.push(var_id_salon) ;
 
	return divEncours
}
</script>
 
<script type="text/javascript">
function demandeMAJNomSalon() {
	xhrNomSalon.onreadystatechange = function() {
	    // On ne fait quelque chose que si on a tout reçu et que le serveur est ok
    	if(xhrNomSalon.readyState == 4 && xhrNomSalon.status == 200) {
	        //on recoit la reponse du serveur, et on traite le XML
	        xmlSalonCleaned = cleanXML(xhrNomSalon.responseXML.documentElement);
	        //le XML est netoyé on peut donc tout créer les fentes de discussion a partir de lui.
	        salon = xmlSalonCleaned.getElementsByTagName('salon')[0];
	        id_salon = salon.getAttribute("id");
	        nom_salon = salon.getAttribute("nom");
 
	        optionEnCours = document.getElementById("salonEnChargement" + id_salon);
	        optionEnCours.id=null;
	        optionEnCours.innerHTML = nom_salon;  
		}
	}
   	xhrNomSalon.open("GET","chat/sendNomSalon.php?id_salon=" + idSalonADemander.shift(),true);  //shift : supprimme et renvoie le 1er element du tableau
 
   	xhrNomSalon.send(null);
}	
</script type="text/javascript">
 
<script type="text/javascript">
function selectChanged() {
	//cette fonction est appellée quand on change de salle dans le champ de selection du formulaire
 
	//tout d'abord, on lit la var lastSalonAffiché afin de cacher le salon affiché precedement
 
	document.getElementById("salon" + lastSalonAffiché).style.display = "none";
 
	//ensuite, on affice celui qui a ete selectionné dans la liste :
	var id_selectionné = document.getElementById("listeSalles").selectedIndex;
	document.getElementById("salon" + id_selectionné).style.display = "block";
	lastSalonAffiché = id_selectionné;
 
}
</script>
<script type="text/javascript">
function visibleInvisible() {
	var leStyleDuFormulaire = document.getElementById("formChat").style.display
	if (leStyleDuFormulaire == "none") {
		document.getElementById("formChat").style.display = "block";
		document.getElementById("Chat_logo").style.display = "none";
	} else {
		document.getElementById("formChat").style.display = "none";
		document.getElementById("Chat_logo").style.display = "inline";
	}
	return false;	
}
</script>
<!-- fin du code JS -->
</head>
 
<body bgcolor="{T_BODY_BGCOLOR}" text="{T_BODY_TEXT}" link="{T_BODY_LINK}" vlink="{T_BODY_VLINK}">
 
<a name="top"></a>
 
<table width="100%" cellspacing="0" cellpadding="10" border="0" align="center"> 
	<tr> 
		<td class="bodyline"><table width="100%" cellspacing="0" cellpadding="0" border="0">
			<tr> 
				<td>
					<a id="Chat_logo"href="{U_INDEX}"><img src="templates/subSilver/images/logo_phpBB.gif" border="0" alt="{L_INDEX}" vspace="1" /></a>
<!-- le code du chat. il y a aussi les script dnas le head de la page  soit on affiche lle logo, soit on affiche le caht-->						
 
<form id="formChat" style="display:none; align=left; class="nonMerci">
<div>
    <div id="divChat" style="height: 200px; width: 100%;" align="center"> 
        <div id="salon0" style="height: 100px; width: 100%;overflow: scroll;display : none" align="left" ><!-- <input type=text id="chatText" style="height:100; width:300"/> -->
            <span id_msg=-1>
                chat : 
            </span> 
        </div>
    </div>
    <div id="infos" style="align=right"> 
  		<select id="users" size="4" type="text">
  		<!-- les options seront completées par DOM et xhr -->
  		</select>
         <select id="listeSalles" onchange="javascript:selectChanged()">
           <option value ="0">Choix du salon</option>          
         </select>
  	</div>    
    <input style="width: 400px;" id="msg" type="text" onKeyPress="if (event.keyCode == 13) {sendMsg(); }" > 
	<input value="OK" name="OK" onclick="javascript:sendMsg()" type="button">
	<input value="MAJ" name="MAJ" onclick="javascript:boucle()" type="button"> </div>
</div>
</form>										
<!-- fin du code du chat -->					
 
 
				</td>
				<td align="center" width="100%" valign="middle"><span id="chat_title_page" class="maintitle">{SITENAME}</span><br /><span class="gen">{SITE_DESCRIPTION}<br />&nbsp; </span> 
				<table cellspacing="0" cellpadding="2" border="0">
					<tr> 
						<td align="center" valign="top" nowrap="nowrap"><span class="mainmenu">&nbsp;<a href="{U_FAQ}" class="mainmenu"><img src="templates/subSilver/images/icon_mini_faq.gif" width="12" height="13" border="0" alt="{L_FAQ}" hspace="3" />{L_FAQ}</a>&nbsp; &nbsp;<a href="{U_SEARCH}" class="mainmenu"><img src="templates/subSilver/images/icon_mini_search.gif" width="12" height="13" border="0" alt="{L_SEARCH}" hspace="3" />{L_SEARCH}</a>&nbsp; &nbsp;<a href="{U_MEMBERLIST}" class="mainmenu"><img src="templates/subSilver/images/icon_mini_members.gif" width="12" height="13" border="0" alt="{L_MEMBERLIST}" hspace="3" />{L_MEMBERLIST}</a>&nbsp; &nbsp;<a href="{U_GROUP_CP}" class="mainmenu"><img src="templates/subSilver/images/icon_mini_groups.gif" width="12" height="13" border="0" alt="{L_USERGROUPS}" hspace="3" />{L_USERGROUPS}</a>&nbsp; 
						<!-- BEGIN switch_user_logged_out -->
						&nbsp;<a href="{U_REGISTER}" class="mainmenu"><img src="templates/subSilver/images/icon_mini_register.gif" width="12" height="13" border="0" alt="{L_REGISTER}" hspace="3" />{L_REGISTER}</a>&nbsp;
						<!-- END switch_user_logged_out -->
						</span></td>
					</tr>
					<tr>
 
						<td height="25" align="center" valign="top" nowrap="nowrap"><span class="mainmenu">
						<!-- BEGIN switch_user_logged_in -->
						&nbsp;<a href="{L_USERID}" class="mainmenu" onclick="return visibleInvisible(); "><img src="chat/icon_mini_chat.gif" width="12" haigth="13" border="0" alt="{L_CHAT}" hspace="3" />Chat</a></span>&nbsp; &nbsp; 
 
						<!-- END switch_user_logged_in -->
						<a href="{U_PROFILE}" class="mainmenu"><img src="templates/subSilver/images/icon_mini_profile.gif" width="12" height="13" border="0" alt="{L_PROFILE}" hspace="3" />{L_PROFILE}</a>&nbsp; &nbsp;<a href="{U_PRIVATEMSGS}" class="mainmenu"><img src="templates/subSilver/images/icon_mini_message.gif" width="12" height="13" border="0" alt="{PRIVATE_MESSAGE_INFO}" hspace="3" />{PRIVATE_MESSAGE_INFO}</a>&nbsp; &nbsp;<a href="{U_LOGIN_LOGOUT}" class="mainmenu"><img src="templates/subSilver/images/icon_mini_login.gif" width="12" height="13" border="0" alt="{L_LOGIN_LOGOUT}" hspace="3" />{L_LOGIN_LOGOUT}</a>&nbsp;</span></td>
					</tr>
				</table></td>
			</tr>
		</table>
		<br />
si vous voulez tester le tout.