<SCRIPT>
var curmes = 0
var a = 0
var counter = 0
var message = new Array()
// inserire qui la frase.
message[0] = "Example of JavaScript"
message[1] = "This is the second"
message[2] = "Hello"
message[3]
= "the end!!"
var temp = ""
function typew(){
a = a + 1
check()
window.status = message[curmes].substring(0, a)
if(a == message[curmes].length + 5){curmes = curmes + 1 a
= 0}
if(curmes > 5){curmes = 0}
// velox of digit
counter = setTimeout("typew()", 100)}
function
check(){
if(a <= message[curmes].length){
if(message[curmes].substring(a, a + 1) == ""){
a = a + 1
check()}}}
</SCRIPT>
Warning
the red instructions don't must be change!
The code must be insert between the tag <HEAD> e </HEAD>,
<HTML>
<HEAD>
<TITLE>Esempio JavaScript 2</TITLE>
<SCRIPT>
...
...
...
</SCRIPT>
</HEAD>
insert
the following instruction between the TAG <BODY>:
<BODY
onload="typew();">
|