Forum de discussion
Forum « Programmation Javascript » (archives)
retour à la ligne
Envoyé: 26 décembre 2003, 10h27 par nic0las
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<script language="JavaScript">
var max=0;
function textlist() {
max=textlist.arguments.length;
for (i=0; i<max; i++)
this[i]=textlist.arguments[i];
}
debut = "c:/"
tl = new textlist(
debut,
"cd mon_repertoire/",
"c:/mon/repertoire/",
);
var x = 0; pos = 0;
var l = tl[0].length;
function textticker() {
document.tickform.tickfield.value = tl[x].substring(0, pos) + "_";
if(pos++ == l) {
pos = 0;
setTimeout("textticker()", 2000);
if(++x == max) x = 0;
l = tl[x].length;
} else
setTimeout("textticker()", 50);
}
</script>
<title>e</title>
</head>
<body onload="textticker()">
<form name="tickform"> <textarea name="tickfield" rows="3" cols="38"
style="background-color: rgb(0,0,0); color: rgb(255,255,255); cursor: default ; font-family: Arial; font-size: 12px;"
wrap="virtual"></textarea> </form>
</body>
</html>
Réponses
|