Soyez le premier à donner votre avis sur cette source.
Vue 25 089 fois - Téléchargée 1 643 fois
<html> <head> <title>Text défilant</title> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> <STYLE type=text/css>BODY { SCROLLBAR-FACE-COLOR: #6699cc; SCROLLBAR-HIGHLIGHT-COLOR: #ffffff; SCROLLBAR-SHADOW-COLOR: #000000; SCROLLBAR-3DLIGHT-COLOR: #000000; SCROLLBAR-ARROW-COLOR: #ffcc00; SCROLLBAR-TRACK-COLOR: #baddff; SCROLLBAR-DARKSHADOW-COLOR: #000000 } .telestyle { position:absolute; visibility:visible; font-size:10pt; font-family:Arial; font-weight:normal; color:#000066; top:96px; left:110px; height:32px; width:560px; filter:alpha(opacity=100); } A:visited { color: #765741; text-decoration: none; font: bold 10pt Arial, Helvetica, sans-serif; } A:link { color: #a73636; text-decoration: none; font: bold 10pt Arial, Helvetica, sans-serif; } A:hover { color: #9820C6; text-decoration: underline; font: bold 10pt Arial, Helvetica, sans-serif; } </STYLE> </head> <SCRIPT LANGUAGE="JavaScript"> <!-- var message = "Bienvenue" var character = 0; var to_print = ""; var ypos = 96; var next = 0 ; var fade = 100 ; var next_message = new Array() ; next_message[0] = "merci" next_message[1] = "c'est trop cool" next_message[2] = "Bienvenue" function doText(text) { if (document.all) { if (character <= text.length - 1) { to_print += text.charAt(character); teletext.innerHTML = to_print; character++; } else scrollIt(); } setTimeout("doText(message)", 20); } function scrollIt() { if (ypos >= 0) { ypos -= 1; fade -= 3; if (ypos < 5) { teletext.innerHTML = "" ; } } else { ypos = 96; character = 0; to_print = ""; nextMessage(); fade = 100; } teletext.style.top = ypos; teletext.filters.alpha.opacity = fade; } function nextMessage() { message = next_message[next] if (next == 2) { next = 0; } else next++; } // --> </script> <body onLoad="doText(message)" bgcolor="#FFFFFF" > <DIV ID=teletext CLASS="telestyle" style="width: 600px"> </DIV> </body> </html>
11 mars 2011 à 12:46
Je suis sérieusement intéressé par ce ch'ti bout de code qui fonctionne parfaitement sous IE, mais malheureusement n'est pas compatible Firefox.
Je vois plusieurs incompatibilités, mais malheureusement je n'ai pas les connaissances nécessaire pour le modifier.
CSS - Opacity - Incompatible
teletext.innerHTML = to_print; - Incompatible
Quelqu'un peut m'aider ?
Merci
19 mars 2006 à 00:47
13 janv. 2005 à 17:35
13 janv. 2005 à 17:33
13 janv. 2005 à 15:55
mais la suite ne suit pas ;)
si kk'un est interessé par ce code version cross-browser, qu'il me fasse signe, je me ferais un plaisir de prendre 1-2 minutes pour le faire
bien a vous
SgtK
Vous n'êtes pas encore membre ?
inscrivez-vous, c'est gratuit et ça prend moins d'une minute !
Les membres obtiennent plus de réponses que les utilisateurs anonymes.
Le fait d'être membre vous permet d'avoir un suivi détaillé de vos demandes et codes sources.
Le fait d'être membre vous permet d'avoir des options supplémentaires.