PamokosSiuntiniai
Jūsų puslapiui |
Dėmesio! Dėmesio! KONKURSAS!
|
| Autorius: | Svecias | Data: | 2005-04-30 11:31:28 | |
| Lygis: | |
Pamatė: | 1987 | |
| Versija: | - |
Demonstracinė versija
Žiūrėkite būsenos eilutėje (Status
Bar)
Scenarijus
1. Šį scenarijų įterpkite tarp <head> ir </head> žymenų.
<script Language="JavaScript">
<!--
var letters= new Array("0", "1", "2", "3",
"4", "5", "6", "7", "8",
"9","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","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]='Pranešimas Nr. 1'
message[1]='Pranešimas Nr. 2'
message[2]='Pranešimas Nr. 3'
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)
}
}
start()
// -->
</script>