Így kell csinálni:A scriptet kimásolod,beilleszted és kész!
Visszaszámláló:
<script> <!-- var anzahl = 30; // de lengte van d eslang var groesse = 20; // de grootte van de slang var abstand1 = 6; // de afstand tussen de rondjes var Farbe = "#00FF00"; //de kleur van de slang function erzeuge() { var a=1; var text=""; document.body.innerHTML += "<span id='AAA' class='leejoo'></span>"; while(a<=anzahl) { text +="<span id='leejoo"+a+"' style='{position:absolute; top:"+(-groesse)+"px; left:"+(-groesse)+"px; background-color:"+Farbe+"; margin:0; height: "+groesse+"px; width: "+groesse+"px; filter:Alpha(style=2, opacity=30, finishopacity=0);}' class='leejoo"+a+"'></span>"; a++; } document.all["AAA"].innerHTML = text; laufen(); } document.onload = setTimeout("erzeuge()",500); var x=-groesse,y=-groesse; function erfasse() { x = window.event.x + document.body.scrollLeft - groesse/2; y = window.event.y + document.body.scrollTop - groesse/2; } document.onmousemove = erfasse; var X=0,Y=0; function neue_koordinaten(x1,y1) { X = abstand1 * Math.sin(Math.atan2(y-y1,x-x1)); Y = abstand1 * Math.sin(Math.atan2(x-x1,y-y1)); } var b=anzahl-1; var c=anzahl; var d=anzahl-Math.ceil(anzahl/32*23); function laufen() { neue_koordinaten(document.all["leejoo"+d].style.pixelLeft,document.all["leejoo"+d].style.pixelTop); document.all["leejoo"+b].style.pixelTop = document.all["leejoo"+c].style.pixelTop + X; neue_koordinaten(document.all["leejoo"+d].style.pixelLeft,document.all["leejoo"+d].style.pixelTop); document.all["leejoo"+b].style.pixelLeft =document.all["leejoo"+c].style.pixelLeft + Y; b--; if(b<=0) b=anzahl; c--; if(c<=0) c=anzahl; d--; if(d<=0) d=anzahl; setTimeout("laufen()",10); } // --> </script> Visszaszámláló: <FORM name=abcdef>Csak <INPUT size=2 value=0 name=b> hónap, <INPUT size=2 value=9 name=c> nap, <INPUT size=2 value=8 name=d> óra, <INPUT size=2 value=4 name=e> perc, és <INPUT size=2 value=36 name=f> másodperc van még hátra újévig!!! </FORM> <SCRIPT language=JavaScript> <!-- // please keep these lines on when you copy the source // made by: Nicolas - http://www.javascript-page.com var Temp2; var timerID = null; var timerRunning = false; var timerID = null; var timerRunning = false; function stopclock () { if(timerRunning) clearTimeout(timerID); timerRunning = false; } function startclock () { stopclock(); showtime(); } function showtime() { now = new Date(); var CurHour = now.getHours(); var CurMinute = now.getMinutes(); var CurMonth = now.getMonth(); var CurDate = now.getDate(); var CurSecond = now.getSeconds(); now = null; var Hourleft = 23 - CurHour var Minuteleft = 59 - CurMinute var Secondleft = 59 - CurSecond var Monthleft = 11 - CurMonth var Dateleft = 31 - CurDate document.abcdef.b.value = Monthleft document.abcdef.c.value = Dateleft document.abcdef.d.value = Hourleft document.abcdef.e.value = Minuteleft document.abcdef.f.value = Secondleft timerID = setTimeout("showtime()",1000); timerRunning = true; } startclock(); // --> </SCRIPT>
Tájfun egérkövető
<LAYER NAME="a0" LEFT=10 TOP=10 VISIBILITY=SHOW BGCOLOR="#0000CC" CLIP="0,0,5,1"></LAYER> <LAYER NAME="a1" LEFT=10 TOP=10 VISIBILITY=SHOW BGCOLOR="#00000" CLIP="0,0,5,1"></LAYER> <LAYER NAME="a2" LEFT=10 TOP=10 VISIBILITY=SHOW BGCOLOR="#FF0000" CLIP="0,0,5,1"></LAYER> <LAYER NAME="a3" LEFT=10 TOP=10 VISIBILITY=SHOW BGCOLOR="#009966" CLIP="0,0,5,1"></LAYER> <LAYER NAME="a4" LEFT=10 TOP=10 VISIBILITY=SHOW BGCOLOR="#00ff00" CLIP="0,0,5,1"></LAYER> <LAYER NAME="a5" LEFT=10 TOP=10 VISIBILITY=SHOW BGCOLOR="#660066" CLIP="0,0,5,1"></LAYER> <LAYER NAME="a6" LEFT=10 TOP=10 VISIBILITY=SHOW BGCOLOR="#FF0000" CLIP="0,0,5,1"></LAYER> <LAYER NAME="a7" LEFT=10 TOP=10 VISIBILITY=SHOW BGCOLOR="#0000CC" CLIP="0,0,7,2"></LAYER> <LAYER NAME="a8" LEFT=10 TOP=10 VISIBILITY=SHOW BGCOLOR="#000000" CLIP="0,0,7,2"></LAYER> <LAYER NAME="a9" LEFT=10 TOP=10 VISIBILITY=SHOW BGCOLOR="#99FF00" CLIP="0,0,7,2"></LAYER> <LAYER NAME="a10" LEFT=10 TOP=10 VISIBILITY=SHOW BGCOLOR="#CC33CC" CLIP="0,0,7,2"></LAYER> <LAYER NAME="a11" LEFT=10 TOP=10 VISIBILITY=SHOW BGCOLOR="#00FF00" CLIP="0,0,7,2"></LAYER> <LAYER NAME="a12" LEFT=10 TOP=10 VISIBILITY=SHOW BGCOLOR="#0000CC" CLIP="0,0,7,2"></LAYER> <LAYER NAME="a13" LEFT=10 TOP=10 VISIBILITY=SHOW BGCOLOR="#FF00FF" CLIP="0,0,8,3"></LAYER> <script language="JavaScript"> if (document.all){ with (document){ write('<div id="starsDiv" style="position:absolute;top:0px;left:0px">') write('<div style="position:relative;width:2px;height:1px;background:#000000;font-size:1px;visibility:visible"></div>') write('<div style="position:relative;width:2px;height:1px;background:#FF0000;font-size:1px;visibility:visible"></div>') write('<div style="position:relative;width:2px;height:1px;background:#FFF000;font-size:1px;visibility:visible"></div>') write('<div style="position:relative;width:2px;height:1px;background:#FF00FF;font-size:1px;visibility:visible"></div>') write('<div style="position:relative;width:2px;height:1px;background:#00FF00;font-size:1px;visibility:visible"></div>') write('<div style="position:relative;width:2px;height:1px;background:#0000CC;font-size:1px;visibility:visible"></div>') write('<div style="position:relative;width:2px;height:1px;background:#FF0000;font-size:1px;visibility:visible"></div>') write('<div style="position:relative;width:3px;height:2px;background:#00FFCC;font-size:2px;visibility:visible"></div>') write('<div style="position:relative;width:3px;height:2px;background:#CC0000;font-size:2px;visibility:visible"></div>') write('<div style="position:relative;width:3px;height:2px;background:#FFFF00;font-size:2px;visibility:visible"></div>') write('<div style="position:relative;width:3px;height:2px;background:#00FF00;font-size:2px;visibility:visible"></div>') write('<div style="position:relative;width:3px;height:2px;background:#996633;font-size:2px;visibility:visible"></div>') write('<div style="position:relative;width:3px;height:2px;background:#000000;font-size:2px;visibility:visible"></div>') write('<div style="position:relative;width:4px;height:3px;background:#FF0000;font-size:3px;visibility:visible"></div>') write('</div>') } } var Clrs=new Array(6) Clrs[0]='FF0000'; Clrs[1]='00FF00'; Clrs[2]='0000CC'; Clrs[3]='FF0000'; Clrs[4]='000000'; Clrs[5]='33CC33'; if (document.layers) {window.captureEvents(Event.MOUSEMOVE);} var yBase = 4; var xBase = 1; var step; var currStep = 4; var Xpos = 9; var Ypos = 6; if (document.all) { function MoveHandler(){ Xpos = document.body.scrollLeft+event.x; Ypos = document.body.scrollTop+event.y; } document.onmousemove = MoveHandler; } else if (document.layers) { function xMoveHandler(evnt){ Xpos = evnt.pageX; Ypos = evnt.pageY; } window.onMouseMove = xMoveHandler; } function animateLogo() { if (document.all) { yBase = window.document.body.offsetHeight/7; xBase = window.document.body.offsetWidth/7; } else if (document.layers) { yBase = window.innerHeight/3; xBase = window.innerWidth/3; } if (document.all) { for ( i = 0 ; i < starsDiv.all.length ; i++ ) {step=3; starsDiv.all[i].style.top = Ypos + yBase*Math.cos((currStep + i*5)/52)*Math.cos(1.7+currStep/200); starsDiv.all[i].style.left = Xpos + xBase*Math.sin((currStep + i*21)/10)*Math.sin(9.2+currStep/400); for (ai=0; ai < Clrs.length; ai++) { var c=Math.round(Math.random()*[ai]); } starsDiv.all[i].style.background=Clrs[c]; } } else if (document.layers) { for ( j = 0 ; j < 14 ; j++ ) //number of NS layers! {step = 4; var templayer="a"+j document.layers[templayer].top = Ypos + yBase*Math.sin((currStep + j*4)/12)*Math.cos(0.7+currStep/200); document.layers[templayer].left = Xpos + xBase*Math.sin((currStep + j*3)/10)*Math.sin(8.2+currStep/400); for (aj=1; aj < Clrs.length; aj++) { var c=Math.round(Math.random()*[aj]); } document.layers[templayer].bgColor=Clrs[c]; } } currStep+= step; setTimeout("animateLogo()", 10); } animateLogo(); // --> </script>