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
| <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Document sans nom</title>
<script language="JavaScript">
var position=0;
var msg=" AAAAAA BBBBBB CCCCCCC DDDDDDD";
var msg=" "+msg;
var longue=msg.length;
var fois=(70/msg.length)+1;
for(i=0;i<=fois;i++) msg+=msg;
function textdefil() {
document.form1.deftext.value=msg.substring(position,position+149);
position++;
if(position == longue) position=0;
setTimeout("textdefil()",140);
}
window.onload = textdefil;
//-->
</script>
</head>
<body>
<form name="form1">
<div align="center">
<input type="text" name="deftext" size=149>
</div>
</form>
</body>
</html> |
Partager