Details | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
3425 | obado | 1 | { |
2 | Nom_Browser = navigator.appName; |
||
3 | |||
4 | Version_Browser = navigator.appVersion; |
||
5 | switch(Nom_Browser) |
||
6 | { |
||
7 | case "Netscape" : |
||
8 | var version="fr"; |
||
9 | |||
10 | var cities = [ |
||
11 | "\\answer{}{}{}", "\\author{}", "\\computeanswer{}", "\\condition{}{}", "\\conditions{}", "\\email{}", "\\embed{}", "\\feedback{}{}", |
||
12 | "\\function{}", "\\help{}", "\\hint{}", "\\integer{}", "\\language{}", "\\matrix{}", |
||
13 | "\\precision{}", "\\solution{}", "\\special{}", "\\statement{}", |
||
14 | "\\steps{}","\\alpha","\\beta","\\gamma","\\delta", "\\epsilon", "\\varepsilon", "\\zeta", "\\eta", "\\Gamma", |
||
15 | "\\Delta","\\Theta","\\theta","\\vartheta","\\kappa", "\\lambda", "\\mu", "\\nu", "\\xi", "\\pi", |
||
16 | "\\varpi","\\rho","\\varrho","\\sigma","\\varsigma", "\\Sigma", "\\Upsilon", "\\Phi", "\\tau", "\\upsilon", |
||
17 | "\\phi","\\varphi","\\chi","\\psi","\\omega", "\\Psi", "\\Upsilon", "\\Phi", "\\Omega", |
||
18 | |||
19 | "\\pm","\\mp","\\times","\\div","\\ast", "\\star", "\\circ", "\\bullet", "\\cdot", |
||
20 | "\\cap","\\cup","\\uplus","\\sqcap","\\sqcup", "\\vee", "\\wedge", "\\setminus", "\\wr", |
||
21 | "\\diamond","\\bigtriangleup","\\bigtriangledown","\\triangleleft","\\triangleright", "\\lhd$^b$", "\\rhd$^b$", "\\unlhd$^b$", "\\unrhd$^b$", |
||
22 | "\\oplus","\\ominus","\\otimes","\\oslash","\\odot", "\\bigcirc", "\\dagger", "\\ddagger", "\\amalg", |
||
23 | |||
24 | "\\widetilde{abc}","\\overleftarrow{abc}","\\overline{abc}","\\overbrace{abc}","\\sqrt{abc}", "\\widehat{abc}", |
||
25 | "\\overrightarrow{abc}", "\\underline{abc}", "\\sqrt[n]{abc}", "\\frac{abc}{xyz}", |
||
26 | |||
27 | "\\hat{a}", "\\check{a}", "\\acute{a}", "\\grave{a}", "\\bar{a}", "\\vec{a}", "\\dot{a}", "\\ddot{a}", |
||
28 | |||
29 | "\\rmoustache", "\\arrowvert", "\\lmoustache", "\\Arrowvert", "\\Arrowvert", "\\bracevert", "\\lgroup" |
||
30 | ]; |
||
31 | |||
32 | |||
33 | |||
34 | |||
35 | var liste="-"; |
||
36 | var compter=0; |
||
37 | |||
38 | function actuliste(liste, indice){ |
||
39 | var mytool_array=liste.split("-"); |
||
40 | var n2=mytool_array.length; |
||
41 | var liste2=""; |
||
42 | for(var i=0; i<n2; i++){ |
||
43 | liste2=liste2+"<OPTION>"+mytool_array[i]+"</OPTION>"; |
||
44 | } |
||
45 | document.formu.sel.innerHTML=liste2; |
||
46 | //var chaine=document.replyform.wims_deposit.value; |
||
47 | //var n=chaine.length; |
||
48 | |||
49 | } |
||
50 | |||
51 | function parcoursTab(instructionwims, indice){ |
||
52 | if(instructionwims!="\\"){ |
||
53 | //var mytool_array=instructionwims.split("\\"); |
||
54 | //var instructionwims=mytool_array[1]; |
||
55 | //alert(instructionwims); |
||
56 | var a="^\\"+instructionwims+""; |
||
57 | var n2=cities.length; |
||
58 | for(var i=0; i<n2; i++){ |
||
59 | var instruction=cities[i]; |
||
60 | var MonReg = new RegExp(a); |
||
61 | if(MonReg.test(instruction)){ |
||
62 | liste=liste+instruction+"-"; |
||
63 | } |
||
64 | } |
||
65 | compter++; |
||
66 | if(liste=="-"){ |
||
67 | var div=document.getElementById("aide"); |
||
68 | aide.innerHTML="<strong>Aide contextuelle</strong> - tapez antislash suivi d'une lettre en miniscule!"; |
||
69 | initlist(); |
||
70 | } |
||
71 | else{ |
||
72 | actuliste(liste, indice); |
||
73 | } |
||
74 | liste="-"; |
||
75 | if(compter==4){ |
||
76 | compter=0; |
||
77 | liste="-"; |
||
78 | var div=document.getElementById("aide"); |
||
79 | aide.innerHTML="<strong>Aide contextuelle</strong> - tapez antislash suivi d'une lettre en miniscule!"; |
||
80 | } |
||
81 | } |
||
82 | } |
||
83 | |||
84 | |||
85 | index=null; |
||
86 | k=null; |
||
87 | y=0; |
||
88 | var instructionwims=""; |
||
89 | var chrono=null; |
||
90 | var chrono2=null; |
||
91 | |||
92 | function instruction(){ |
||
93 | var chaine=document.replyform.wims_deposit.value; |
||
94 | //chaine[curseur-1] |
||
95 | var curseur=Cursor_GetPos('wims_deposit_id'); |
||
96 | var n=chaine.length; |
||
97 | |||
98 | var a=index+5; |
||
99 | if(n<=a){ |
||
100 | //alert(chaine[n-1]); |
||
101 | |||
102 | if(chaine[n-1]==chaine[index+y]){ |
||
103 | y++; |
||
104 | instructionwims=instructionwims+chaine[curseur-1]; |
||
105 | parcoursTab(instructionwims, k); |
||
106 | //alert(instructionwims); |
||
107 | } |
||
108 | |||
109 | } |
||
110 | else{ |
||
111 | clearInterval(chrono2); |
||
112 | chrono2=null; |
||
113 | //alert(instructionwims); |
||
114 | instructionwims=""; |
||
115 | y=0; |
||
116 | anime(); |
||
117 | } |
||
118 | |||
119 | |||
120 | } |
||
121 | function anime2() { |
||
122 | |||
123 | |||
124 | if(chrono2==null){ |
||
125 | chrono2=setInterval("instruction()",20); |
||
126 | |||
127 | } |
||
128 | } |
||
129 | function change() { |
||
130 | //var chaine=document.replyform.wims_deposit.value; |
||
131 | //var mytool_array=chaine.split(" "); |
||
132 | var chaine=document.getElementById("wims_deposit_id").value; |
||
133 | //alert(chaine.value); |
||
134 | var curseur=Cursor_GetPos('wims_deposit_id'); |
||
135 | |||
136 | var n=chaine.length; |
||
137 | if(n>0){ |
||
138 | var i = n-1; |
||
139 | //alert(chaine[i]); |
||
140 | if(chaine[curseur-1]=="\\"){ |
||
141 | //alert(chaine[curseur-1]); |
||
142 | index=i; |
||
143 | k=i; |
||
144 | clearInterval(chrono); |
||
145 | chrono=null; |
||
146 | anime2(); |
||
147 | } |
||
148 | //alert(chaine[i]); |
||
149 | |||
150 | } |
||
151 | } |
||
152 | |||
153 | function anime() { |
||
154 | initlist(); |
||
155 | if(chrono==null) |
||
156 | chrono=setInterval("change()",10); |
||
157 | } |
||
158 | function initlist() { |
||
159 | liste="-"; |
||
160 | compter=0; |
||
161 | index=null; |
||
162 | k=null; |
||
163 | y=0; |
||
164 | instructionwims=""; |
||
165 | |||
166 | |||
167 | |||
168 | //ie error alert(document.replyform.wims_deposit.value;); |
||
169 | var formselect=document.getElementById("divoptions"); |
||
170 | var n2=cities.length; |
||
171 | var liste=""; |
||
172 | var liste2=""; |
||
173 | for(var i=0; i<n2; i++){ |
||
174 | |||
175 | liste=liste+"<OPTION>"+cities[i]+"</OPTION>"; |
||
176 | } |
||
177 | formselect.innerHTML="<FORM NAME='formu' onClick='afficheaide();'><SELECT ondblclick='inser()' id='select' NAME='sel' SIZE='10'>"+liste+"</SELECT><br><input type='button' value='insérer la sélection'"+ |
||
178 | "onclick='inser()' /></FORM>"; |
||
179 | //alert(formselect.innerHTML); |
||
180 | } |
||
181 | function afficheaide(langue){ |
||
182 | |||
183 | var div=document.getElementById("aide"); |
||
184 | var selectedoption=document.getElementsByTagName("OPTION"); |
||
185 | var instruction=selectedoption[document.formu.sel.selectedIndex].innerHTML; |
||
186 | |||
187 | //alert(instruction); |
||
188 | if(langue=="undefined") langue=version; |
||
189 | if(langue=="eng") version="eng"; |
||
190 | if(langue=="fr") version="fr"; |
||
191 | var text=bd(instruction, version); |
||
192 | |||
193 | if(text=="<img src='/js/enev/styles/t1.gif'>" || text=="<img src='/js/enev/styles/t2.gif'>" || text=="<img src='/js/enev/styles/t3.gif'>" || text=="<img src='/js/enev/styles/t4.gif'>" || text=="<img src='/js/enev/styles/t5.gif'>"){ |
||
194 | aide.innerHTML="<p><strong>"+instruction+" -instruction latex</strong></p><div><pre>"+text+"</pre></div>"; |
||
195 | } |
||
196 | else{ |
||
197 | |||
198 | aide.innerHTML="<p><strong>"+instruction+" -instruction wims</strong></p><div><pre>"+text+"</pre></div>"; |
||
199 | |||
200 | } |
||
201 | |||
202 | var mytool_array=text.split("\n"); |
||
203 | var lignes=mytool_array.length; |
||
204 | if(lignes<5) lignes=0; |
||
205 | //aide.style.marginBottom="44px"; |
||
206 | |||
207 | aide.style.marginBottom = ""+lignes+"em"; |
||
208 | if(text=="<img src='/js/enev/styles/t1.gif'>") aide.style.marginBottom ="222px"; |
||
209 | if(text=="<img src='/js/enev/styles/t2.gif'>") aide.style.marginBottom ="200px"; |
||
210 | if(text=="<img src='/js/enev/styles/t3.gif'>") aide.style.marginBottom ="144px"; |
||
211 | //alert(text); |
||
212 | } |
||
213 | |||
214 | function inser(){ |
||
215 | |||
216 | var selectedoption=document.getElementsByTagName("OPTION"); |
||
217 | var instruction=selectedoption[document.formu.sel.selectedIndex].innerHTML; |
||
218 | var select=document.getElementById("select"); |
||
219 | var a=select.innerHTML; |
||
220 | var mytool_array=a.split("<option>"); |
||
221 | var n=mytool_array.length; |
||
222 | var n2=cities.length; |
||
223 | var n3=n2+1; |
||
224 | //Si on a la liste total des villes |
||
225 | if(n==n3){ |
||
226 | Cursor_AddTexte('wims_deposit_id', instruction); |
||
227 | initlist(); |
||
228 | } |
||
229 | else{ |
||
230 | var curseur=Cursor_GetPos('wims_deposit_id'); |
||
231 | //alert(curseur); |
||
232 | var chaine=document.replyform.wims_deposit.value; |
||
233 | var chaine2=""; |
||
234 | for(var i=0; i<curseur-y; i++){ |
||
235 | chaine2=chaine2+chaine[i]; |
||
236 | } |
||
237 | var n=chaine.length; |
||
238 | //alert(n); |
||
239 | //alert(curseur); |
||
240 | //alert(chaine2); |
||
241 | if(n==curseur){ |
||
242 | document.replyform.wims_deposit.value=chaine2+instruction; |
||
243 | |||
244 | } |
||
245 | else{ |
||
246 | var chaine3=""; |
||
247 | for(var i=curseur; i<n; i++){ |
||
248 | chaine3=chaine3+chaine[i]; |
||
249 | } |
||
250 | document.replyform.wims_deposit.value=chaine2+instruction+chaine3; |
||
251 | } |
||
252 | |||
253 | |||
254 | initlist(); |
||
255 | } |
||
256 | } |
||
257 | function enregistrer(){ |
||
258 | var chaine=document.replyform.wims_deposit.value; |
||
259 | alert(chaine); |
||
260 | |||
261 | } |
||
262 | |||
263 | |||
264 | break; |
||
265 | case "Microsoft Internet Explorer" : |
||
266 | document.writeln("<style>div#textarea{width:95%;}</style>"); |
||
267 | |||
268 | var version="fr"; |
||
269 | |||
270 | var cities = [ |
||
271 | "\\answer{}{}{}", "\\author{}", "\\computeanswer{}", "\\condition{}{}", "\\conditions{}", "\\email{}", "\\embed{}", "\\feedback{}{}", |
||
272 | "\\function{}", "\\help{}", "\\hint{}", "\\integer{}", "\\language{}", "\\matrix{}", |
||
273 | "\\precision{}", "\\solution{}", "\\special{}", "\\statement{}", |
||
274 | "\\steps{}","\\alpha","\\beta","\\gamma","\\delta", "\\epsilon", "\\varepsilon", "\\zeta", "\\eta", "\\Gamma", |
||
275 | "\\Delta","\\Theta","\\theta","\\vartheta","\\kappa", "\\lambda", "\\mu", "\\nu", "\\xi", "\\pi", |
||
276 | "\\varpi","\\rho","\\varrho","\\sigma","\\varsigma", "\\Sigma", "\\Upsilon", "\\Phi", "\\tau", "\\upsilon", |
||
277 | "\\phi","\\varphi","\\chi","\\psi","\\omega", "\\Psi", "\\Upsilon", "\\Phi", "\\Omega", |
||
278 | |||
279 | "\\pm","\\mp","\\times","\\div","\\ast", "\\star", "\\circ", "\\bullet", "\\cdot", |
||
280 | "\\cap","\\cup","\\uplus","\\sqcap","\\sqcup", "\\vee", "\\wedge", "\\setminus", "\\wr", |
||
281 | "\\diamond","\\bigtriangleup","\\bigtriangledown","\\triangleleft","\\triangleright", "\\lhd$^b$", "\\rhd$^b$", "\\unlhd$^b$", "\\unrhd$^b$", |
||
282 | "\\oplus","\\ominus","\\otimes","\\oslash","\\odot", "\\bigcirc", "\\dagger", "\\ddagger", "\\amalg", |
||
283 | |||
284 | "\\widetilde{abc}","\\overleftarrow{abc}","\\overline{abc}","\\overbrace{abc}","\\sqrt{abc}", "\\widehat{abc}", |
||
285 | "\\overrightarrow{abc}", "\\underline{abc}", "\\sqrt[n]{abc}", "\\frac{abc}{xyz}", |
||
286 | |||
287 | "\\hat{a}", "\\check{a}", "\\acute{a}", "\\grave{a}", "\\bar{a}", "\\vec{a}", "\\dot{a}", "\\ddot{a}", |
||
288 | |||
289 | "\\rmoustache", "\\arrowvert", "\\lmoustache", "\\Arrowvert", "\\Arrowvert", "\\bracevert", "\\lgroup" |
||
290 | ]; |
||
291 | |||
292 | |||
293 | |||
294 | |||
295 | |||
296 | var liste="-"; |
||
297 | var compter=0; |
||
298 | |||
299 | function actuliste(liste, indice){ |
||
300 | var mytool_array=liste.split("-"); |
||
301 | var n2=mytool_array.length; |
||
302 | var liste2=""; |
||
303 | for(var i=0; i<n2; i++){ |
||
304 | liste2=liste2+"<OPTION>"+mytool_array[i]+"</OPTION>"; |
||
305 | } |
||
306 | document.formu.sel.innerHTML=liste2; |
||
307 | //var chaine=document.form.wims_deposit.value; |
||
308 | //var n=chaine.length; |
||
309 | |||
310 | } |
||
311 | |||
312 | function parcoursTab(instructionwims, indice){ |
||
313 | if(instructionwims!="\\"){ |
||
314 | //var mytool_array=instructionwims.split("\\"); |
||
315 | //var instructionwims=mytool_array[1]; |
||
316 | //alert(instructionwims); |
||
317 | var a="^\\"+instructionwims+""; |
||
318 | var n2=cities.length; |
||
319 | for(var i=0; i<n2; i++){ |
||
320 | var instruction=cities[i]; |
||
321 | var MonReg = new RegExp(a); |
||
322 | if(MonReg.test(instruction)){ |
||
323 | liste=liste+instruction+"-"; |
||
324 | } |
||
325 | } |
||
326 | compter++; |
||
327 | if(liste=="-"){ |
||
328 | var div=document.getElementById("aide"); |
||
329 | aide.innerHTML="<strong>Aide contextuelle</strong> - tapez antislash suivi d'une lettre en miniscule!"; |
||
330 | initlist(); |
||
331 | } |
||
332 | else{ |
||
333 | actuliste(liste, indice); |
||
334 | } |
||
335 | liste="-"; |
||
336 | if(compter==4){ |
||
337 | compter=0; |
||
338 | liste="-"; |
||
339 | var div=document.getElementById("aide"); |
||
340 | aide.innerHTML="<strong>Aide contextuelle</strong> - tapez antislash suivi d'une lettre en miniscule!"; |
||
341 | } |
||
342 | } |
||
343 | } |
||
344 | |||
345 | |||
346 | index=null; |
||
347 | k=null; |
||
348 | y=0; |
||
349 | var instructionwims=""; |
||
350 | var chrono=null; |
||
351 | var chrono2=null; |
||
352 | function instruction(){ |
||
353 | var chaine=document.replyform.wims_deposit.value; |
||
354 | |||
355 | var n=chaine.length; |
||
356 | if(n>0){ |
||
357 | var a=index+5; |
||
358 | if(n<=a){ |
||
359 | //alert(chaine[n-1]); |
||
360 | if(chaine[n-1]==chaine[index+y]){ |
||
361 | y++; |
||
362 | instructionwims=instructionwims+chaine[n-1]; |
||
363 | parcoursTab(instructionwims, k); |
||
364 | } |
||
365 | } |
||
366 | else{ |
||
367 | clearInterval(chrono2); |
||
368 | chrono2=null; |
||
369 | //alert(instructionwims); |
||
370 | instructionwims=""; |
||
371 | y=0; |
||
372 | anime(); |
||
373 | } |
||
374 | |||
375 | } |
||
376 | } |
||
377 | function anime2() { |
||
378 | |||
379 | if(chrono2==null) |
||
380 | chrono2=setInterval("instruction()",10); |
||
381 | } |
||
382 | function change() { |
||
383 | //var chaine=document.replyform.wims_deposit.value; |
||
384 | //var mytool_array=chaine.split(" "); |
||
385 | var chaine=document.getElementById("wims_deposit_id").value; |
||
386 | //alert(chaine.value); |
||
387 | var n=chaine.length; |
||
388 | if(n>0){ |
||
389 | var i = n-1; |
||
390 | //alert(chaine[i]); |
||
391 | if(chaine[i]=="\\"){ //document.write("dfgdfgdsfgdsf"); |
||
392 | |||
393 | //alert("antislash detecté"); |
||
394 | index=i; |
||
395 | k=i; |
||
396 | clearInterval(chrono); |
||
397 | chrono=null; |
||
398 | anime2(); |
||
399 | } |
||
400 | //alert(chaine[i]); |
||
401 | |||
402 | } |
||
403 | } |
||
404 | |||
405 | function anime() { |
||
406 | initlist(); |
||
407 | if(chrono==null) |
||
408 | chrono=setInterval("change()",10); |
||
409 | } |
||
410 | |||
411 | function initlist() { |
||
412 | liste="-"; |
||
413 | compter=0; |
||
414 | index=null; |
||
415 | k=null; |
||
416 | y=0; |
||
417 | instructionwims=""; |
||
418 | |||
419 | |||
420 | |||
421 | //ie error alert(document.replyform.wims_deposit.value;); |
||
422 | var formselect=document.getElementById("divoptions"); |
||
423 | var n2=cities.length; |
||
424 | var liste=""; |
||
425 | for(var i=0; i<n2; i++){ |
||
426 | liste=liste+"<OPTION>"+cities[i]+"</OPTION>"; |
||
427 | } |
||
428 | formselect.innerHTML="<FORM NAME='formu' onClick='afficheaide();'><SELECT ondblclick='inser()' id='select' NAME='sel' SIZE='10'>"+liste+"</SELECT><br><input type='button' value='insérer la sélection'"+ |
||
429 | "onclick='inser()' /></FORM>"; |
||
430 | //alert(formselect.innerHTML); |
||
431 | } |
||
432 | function afficheaide(langue){ |
||
433 | |||
434 | var div=document.getElementById("aide"); |
||
435 | var selectedoption=document.getElementsByTagName("OPTION"); |
||
436 | var instruction=selectedoption[document.formu.sel.selectedIndex].innerHTML; |
||
437 | |||
438 | //alert(instruction); |
||
439 | if(langue=="undefined") langue=version; |
||
440 | if(langue=="eng") version="eng"; |
||
441 | if(langue=="fr") version="fr"; |
||
442 | var text=bd(instruction, version); |
||
443 | if(text=="<img src='/js/enev/styles/t1.gif'>" || text=="<img src='/js/enev/styles/t2.gif'>" || text=="<img src='/js/enev/styles/t3.gif'>" || text=="<img src='/js/enev/styles/t4.gif'>" || text=="<img src='/js/enev/styles/t5.gif'>"){ |
||
444 | aide.innerHTML="<p><strong>"+instruction+" -instruction latex</strong></p><div><pre>"+text+"</pre></div>"; |
||
445 | } |
||
446 | else{ |
||
447 | |||
448 | aide.innerHTML="<p><strong>"+instruction+" -instruction wims</strong></p><div><pre>"+text+"</pre></div>"; |
||
449 | |||
450 | } |
||
451 | //alert(text); |
||
452 | var mytool_array=text.split("\n"); |
||
453 | var lignes=mytool_array.length; |
||
454 | if(lignes<5) lignes=0; |
||
455 | //aide.style.marginBottom="44px"; |
||
456 | |||
457 | aide.style.marginBottom = ""+lignes+"em"; |
||
458 | if(text=="<img src='/js/enev/styles/t1.gif'>") aide.style.marginBottom ="222px"; |
||
459 | if(text=="<img src='/js/enev/styles/t2.gif'>") aide.style.marginBottom ="200px"; |
||
460 | if(text=="<img src='/js/enev/styles/t3.gif'>") aide.style.marginBottom ="111px"; |
||
461 | } |
||
462 | function inser(){ |
||
463 | var selectedoption=document.getElementsByTagName("OPTION"); |
||
464 | var instruction=selectedoption[document.formu.sel.selectedIndex].innerHTML; |
||
465 | var select=document.getElementById("select"); |
||
466 | var a=select.innerHTML; |
||
467 | var mytool_array=a.split("<option>"); |
||
468 | var n=mytool_array.length; |
||
469 | var n2=cities.length; |
||
470 | var n3=n2+1; |
||
471 | //Si on a la liste total des villes |
||
472 | if(n==n3){ |
||
473 | var chaine=document.replyform.wims_deposit.value; |
||
474 | var chaine2=chaine+"\n"+instruction; |
||
475 | document.replyform.wims_deposit.value=chaine2; |
||
476 | initlist(); |
||
477 | } |
||
478 | else{ |
||
479 | var chaine=document.replyform.wims_deposit.value; |
||
480 | var mytool_array=chaine.split("\n"); |
||
481 | var n=mytool_array.length; |
||
482 | |||
483 | var b=""; |
||
484 | for(var i=0; i<n-1; i++){ |
||
485 | b=b+""+mytool_array[i]+"\n"; |
||
486 | |||
487 | } |
||
488 | var dernierligne=mytool_array[n-1].split(" "); |
||
489 | var n2=dernierligne.length; |
||
490 | //alert(n2); |
||
491 | if(n2==1){ |
||
492 | var chainefin=b+""+instruction; |
||
493 | document.replyform.wims_deposit.value=chainefin; |
||
494 | initlist(); |
||
495 | } |
||
496 | else{ |
||
497 | var dernierligne=mytool_array[n-1].split(" "); |
||
498 | var n3=dernierligne.length; |
||
499 | var c=""; |
||
500 | for(var i=0; i<n3-1; i++){ |
||
501 | c=c+""+dernierligne[i]+" "; |
||
502 | |||
503 | } |
||
504 | var chainefin=b+""+c+"\n"+instruction; |
||
505 | document.replyform.wims_deposit.value=chainefin; |
||
506 | initlist(); |
||
507 | } |
||
508 | } |
||
509 | } |
||
510 | function enregistrer(){ |
||
511 | var chaine=document.replyform.wims_deposit.value; |
||
512 | alert(chaine); |
||
513 | |||
514 | } |
||
515 | |||
516 | break; |
||
517 | |||
518 | } |
||
519 | } |
||
520 | function image(){ |
||
521 | var url=document.getElementById("url").value; |
||
522 | var description=document.getElementById("description").value; |
||
523 | hudAnimationFermeture('hud_video_intro'); |
||
524 | if(description==""){ var image="\\img{"+url+"}{alt='description manquante'}";} |
||
525 | else{ |
||
526 | var image="\\img{"+url+"}{alt='"+description+"'}"; |
||
527 | } |
||
528 | Cursor_AddTexte('wims_deposit_id', image); |
||
529 | } |
||
530 |