Dynamic Scripts - "Blinking Java"
timerID = null;
licz = 0
var light = new Array(
0xFFFFFF,
0x00FFFF,
0xFF00FF,
0x0000FF,
0xFFFF00,
0xFFFF00,
0x00FF00,
0xFF0000,
0xC0C0C0)
dark = new Array(
0x000000,
0x800000,
0x008000,
0x808000,
0x000080,
0x800080,
0x008080,
0x808080,
0x83B4B0)
document.write("JavaScript")
// Uruchomienie procedury sterujacej
start()
function start()
{
today = new Date()
num = today.getTime()
var los = Math.round(Math.abs(Math.sin(num)*1000000)) % 9
if (licz++==2) { licz=0; document.bgColor = light [los] }
else document.bgColor = light[los]
timerID = setTimeout("start()",0)
}
//-->
Wyszukiwarka
Podobne podstrony:
Blink182 I miss youBlink182 AlwaysBlink182 I miss youblink11więcej podobnych podstron