salut tout le monde
j ai mis en place dans le menu de mon site un text defilant censé apparaitre progressivement tout en ayant une parti caché
la partie caché doit se situé au niveau d'un de la seconde rubrie de mon menu or ce dernier s affiche carrement au dessus de la rubrique donc n'est jamais du coté obscure

voici le code js contenant les fonctions:

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
 
	var TextesDefilants=new Array();
 
  	function TexteDefilant(tmpPasDefil,TempsAffichage,tmpLargeur,tmpHauteur,tmpDirection,tmpIndexDeDepart,tmpControleTitre,tmpvitesseDefile)
 
  	{
 
//Définit et initialise les vaiables passées en paramètre
 
		this.PasDefil = 1
 
  		this.TimerDefile = null;
 
  		this.TableauTextes = new Array()
 
  		this.TableauTitres = new Array()
 
  		this.IndexEnCours = 0;
 
  		this.IndexEnPrecedent = -1;
 
  		this.Largeur = "100%";
 
  		this.Hauteur = "100%";
 
  		this.Direction = "UP";
 
		this.ControleTitre = tmpControleTitre
 
		this.PosLeft = 0;
 
		this.PosTop = 0;
 
		this.VitesseDefile = 10;
 
 
 
  		if(tmpvitesseDefile)
 
  		{
 
  			this.VitesseDefile = tmpvitesseDefile;
 
  		}
 
  		if(tmpPasDefil)
 
  		{
 
  			this.PasDefil = tmpPasDefil;
 
  		}
 
  		if(tmpLargeur)
 
  		{
 
  			this.Largeur = tmpLargeur;
 
  		}
 
  		if(tmpHauteur)
 
  		{
 
  			this.Hauteur = tmpHauteur;
 
  		}
 
  		if(tmpIndexDeDepart)
 
  		{
 
  			this.IndexEnCours = tmpIndexDeDepart;
 
  		}
 
  		if(tmpDirection)
 
  		{
 
  			this.Direction = tmpDirection
 
  		}
 
		this.PosH=this.Hauteur;
 
 
 
//Détermine le nouveau numéro d'index de l'objet
 
		this.Index=TextesDefilants.length;
 
//Insère l'objet en cours dans le tableau des objets
 
		TextesDefilants[this.Index]=this;
 
 
 
//Ajoute la chaine passée en paramètre dans les textes à faire défiler
 
  		this.AddTexte = function(strChaine,strTitre)
 
  		{
 
			var TmpId = this.TableauTextes.length;
 
  			this.TableauTextes[TmpId] = strChaine;
 
		//Dessine le div ki va contenir le texte
 
		//overflow:hidden, c pour masquer les barres de défilement si le texte > taille du DIV
 
 
 
  			tmpDiv = "<DIV id='Div_TexteDefilant"+this.Index+"_"+TmpId+"' nowrap=true style='overflow:hidden;display:none;position:relative;left:"+this.PosLeft+";top:"+this.PosTop+";font-size:11px;margin-top:5px;";
 
  			tmpDiv += "width:"+this.Largeur+"px;height:"+this.Hauteur+"px;z-index:100;'>";
 
  			document.write(tmpDiv);
 
  			document.write(this.TableauTextes[TmpId]);
 
  			document.write("</DIV>");
 
  			if(strTitre)
 
  			{
 
	  			this.TableauTextes[TmpId] = strTitre;
 
  			}
 
	  		else
 
  			{
 
	  			this.TableauTextes[TmpId] = "";
 
  			}
 
  		}
 
  		this.Next = function()
 
  		{
 
			this.IndexEnPrecedent = this.IndexEnCours
 
  			this.IndexEnCours +=1
 
  			if (this.IndexEnCours>=this.TableauTextes.length)
 
  			{
 
  				this.IndexEnCours = 0;
 
  			}
 
  			else if (this.IndexEnCours<0)
 
  			{
 
  				this.IndexEnCours = (this.TableauTextes.length-1);
 
  			}
 
			eval('TextesDefilants[' + this.Index + '].ChangeTexte(1)');
 
  		}
 
//Change le texte à faire défiler
 
  		this.ChangeTexte = function()
 
  		{
 
			if(document.getElementById("Div_TexteDefilant"+this.Index+"_"+this.IndexEnPrecedent) )
 
			{
 
				document.getElementById("Div_TexteDefilant"+this.Index+"_"+this.IndexEnPrecedent).style.display= "none";
 
			}
 
  			this.IndexEnCours = this.IndexEnCours;
 
			document.getElementById("Div_TexteDefilant"+this.Index+"_"+this.IndexEnCours).style.display= "";
 
			if(this.Direction == "UP")
 
			{
 
				this.PosH=this.Hauteur;
 
				this.PosTop =this.Hauteur;
 
				this.PosLeft =0;
 
			}
 
			eval('TextesDefilants[' + this.Index + '].Defile()');
 
			if(this.TableauTextes[this.IndexEnCours] != "")
 
			{
 
				document.getElementById(this.ControleTitre).innerHTML = this.TableauTextes[this.IndexEnCours]
 
			}
 
  		}
 
//Arret défilement
 
		this.Stop = function()
 
		{
 
			if (this.TimerDefile!= null)
 
			{
 
				clearTimeout(this.TimerDefile);
 
				this.TimerDefile=null;
 
			}
 
		}
 
//défilement
 
		this.Start=function ()
 
		{
 
			eval('TextesDefilants[' + this.Index + '].ChangeTexte()');
 
		}
 
//Action du défilement
 
		this.Defile= function ()
 
		{
 
			clearTimeout(this.TimerDefile);
 
			if(this.Direction == "UP")
 
			{
 
				this.PosH-=this.PasDefil;
 
				this.PosTop-=this.PasDefil;
 
				if (this.PosH<=0)
 
				{
 
					this.Stop();
 
					this.TimerDefile = window.setTimeout("TextesDefilants[" + this.Index + "].Next()",TempsAffichage)
 
				}
 
				else
 
				{
 
					document.getElementById("Div_TexteDefilant"+this.Index+"_"+this.IndexEnCours).style.height = parseInt(this.Hauteur - this.PosH);
 
					this.TimerDefile = window.setTimeout("TextesDefilants[" + this.Index + "].Defile()",this.VitesseDefile)
 
				}
 
			}
 
			document.getElementById("Div_TexteDefilant"+this.Index+"_"+this.IndexEnCours).style.top = parseInt(this.PosTop) + "px";
 
			document.getElementById("Div_TexteDefilant"+this.Index+"_"+this.IndexEnCours).style.left = parseInt(this.PosLeft)+"px";
 
		}
 
  	}
ma page menu faisant appel aux fonctions

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
 
if(!empty($rss))
		{
			echo"<script language=javascript>";
			echo"var CadreDefilant1; ";			
			echo"CadreDefilant1 = new TexteDefilant(2,3000,130,100,'UP',0,'TD_Titre1',100);";
			foreach($rss as $tab)
			{
				$Mydate = decompose_date($tab[4]);
				echo "CadreDefilant1.AddTexte('<span class=gras>".utf8_encode($tab[3])."</span><br/>";
				echo "<p>".substr(utf8_encode($tab[0]),0,50)."(...)</p>";
				echo "<p>".$Mydate['day'].'-'.$Mydate['month']."-".$Mydate['year']."</p>";
				echo $tab[5];
				echo "<p><a href=".utf8_encode($tab[1])." class=mainlevel>>>Voir plus</a></p>');";
			}
			echo"CadreDefilant1.Start();";
			echo"</script>";
		}
		else
			echo"<span class='comment'>Aucune information dans le flux !</span>";
 
		echo"<br/>";
		if(!isset($_SESSION['menu']))
		{
			echo"<div class='titlemenu'> Identification </div>";
			echo"<form method='post' action='verifUser.php' onsubmit='return verif(this);'>";
			echo"<div class='formID'>Nom d'utilisateur</div>";
			echo"<p><input type='text' name='id' maxlength='50' size='13'/></p>";
			echo"<div class='formID'>Mot de passe</div>";
			echo"<p><input type='password' name='pwd' maxlength='50' size='13'/></p>";
			echo"<p><input type='submit' name='send' value='Se connecter'/></p>";
			echo"</form>";
		}
 
................................
ps : j ai mi la parti recouverte par le text defilant au cas ou ca pourrait aider

j espere que vous pourrez m eclairer sur le sujet
merci d avance pour votre participation