<html> <head> <title>Смена сообщений в строке статуса</title> <Script Language="JavaScript" type="text/javascript"> <!-- var letters= new Array("0", "1", "2", "3", "4", "5", "6", "7", "8", "9","A", "Б", "В", "Г", "Д", "Е", "Ж", "З", "И", "Й", "К", "Л", "М", "Н", "О", "П", "Р", "С", "Т", "У", "Ф", "Х", "Ч", "Щ", "У", "Я","a", "b", "c", "d", "e", "f", "g", "h", "i", "j", "k", "l", "m", "n", "o", "p", "q", "r", "s", "t", "u", "v", "w", "x", "y", "z","!","@","#","$","%","^","&","*","(",")","_","-","+","=","<",">","/","?","®","©") var smessage="" var message= new Array(); var msg=0; message[0]='Добро пожаловать' message[1]='Меня зовут Лидия' message[2]='Здесь самые лучшие скрипты!' message[3]='Scriptic.narod.ru' function start(){ for (y=0; y<message[msg].length; y++){ for (x=0; x<20; x++){ rnum=Math.random(); rnum*=letters.length-1 rnum=Math.round(rnum) window.status=smessage+letters[rnum] for (del=0; del<20; del++){} } smessage+=message[msg].substring(y,y+1) window.status=smessage; } window.setTimeout('clrdspl()',2000); } function clrdspl(){ smessage=""; window.status=""; if (msg<message.length-1){ msg++; start(); } else{ msg=0; window.setTimeout('start()',1000) } } // --> </Script> </head> <body onLoad="start()"> </body> </html>
|