<body> <DIV id="A" style="color:rgb(171,0,19); width:200px; height:200px; position:absolute; left:200px; top:-10px; z-index:1;">ide ird a szövegedet</DIV> <DIV id="B" style="color:rgb(232,4,36); width:200px; height:200px; position:absolute; left:200px; top:-10px; z-index:1;">ide ird a szövegedet</DIV> <DIV id="C" style="color:rgb(253,89,112); width:200px; height:200px; position:absolute; left:200px; top:-10px; z-index:1;">ide ird a szövegedet</DIV> <DIV id="D" style="font-size:30pt; color:rgb(254,150,165); width:200px; height:200px; position:absolute; left:200px; top:-10px; z-index:1;">ide ird a szövegedet</DIV> <DIV id="E" style="font-size:32pt; color:rgb(255,203,210); width:200px; height:200px; position:absolute; left:200px; top:-10px; z-index:1;">ide ird a szövegedet</DIV> <DIV id="F" style="font-size:34pt; color:rgb(254,150,165); width:200px; height:200px; position:absolute; left:200px; top:-10px; z-index:1;">ide ird a szövegedet</DIV> <DIV id="G" style="font-size:36pt; color:rgb(253,89,112); width:200px; height:200px; position:absolute; left:200px; top:-10px; z-index:1;">ide ird a szövegedet</DIV> <DIV id="H" style="font-size:34pt; color:rgb(232,4,36); width:200px; height:200px; position:absolute; left:200px; top:-10px; z-index:1;">ide ird a szövegedet</DIV> <DIV id="I" style="font-size:32pt; color:rgb(171,0,19); width:200px; height:200px; position:absolute; left:200px; top:-10px; z-index:1;">ide ird a szövegedet</DIV> <DIV id="J" style="font-size:30pt; color:rgb(232,4,36); width:200px; height:200px; position:absolute; left:200px; top:-10px; z-index:1;">ide ird a szövegedet</DIV> <DIV id="K" style="color:rgb(253,89,112); width:200px; height:200px; position:absolute; left:200px; top:-10px; z-index:1;">ide ird a szövegedet</DIV> <DIV id="L" style="color:rgb(254,150,165); width:200px; height:200px; position:absolute; left:200px; top:-10px; z-index:1;">ide ird a szövegedet</DIV> <SCRIPT language=JavaScript>
x = new Array(); y = new Array(); wait = new Array(); dx = new Array(); dy = new Array(); baseY = 600; offsset = 2; limitLeft = 10; limitRight = 800; moveNum = 12; timerID = 0; time = 60; getPos(); function getPos() { for(i=0; i<moveNum; i++) { a = "ABCDEFGHIJKL".charAt(i); { x[i] = window[a].style.pixelLeft; y[i] = window[a].style.pixelTop; } wait[i] = i*3; dx[i] = -8; dy[i] = 0; } tarsnake(); } function tarsnake() { for (i=0; i<moveNum; i++) { if (wait[i] > 0) { wait[i]--; }else{ a = "ABCDEFGHIJKL".charAt(i); y[i] = y[i] + dy[i]; if (y[i] >= baseY) { dy[i] = -dy[i]}else{dy[i] = dy[i] + offsset;} x[i] = x[i] + dx[i]; if ( x[i] <= limitLeft ) { x[i] = limitLeft; dx[i] = -dx[i]; } if ( x[i] >= limitRight ) { x[i] = limitRight; dx[i] = -dx[i]; } { window[a].style.pixelLeft = x[i]; window[a].style.pixelTop = y[i]; } } clearTimeout(timerID); timerID = setTimeout("tarsnake()",time); } }
</SCRIPT></body>
|