Így kell csinálni:Ascriptet kimásolod,beilleszted és kész!(FIGYELEM:Az itt felsoroltak közül a színükön váltosztathatsz!
Labda:
<FONT color=#ffff00> <SCRIPT language=JavaScript1.2><BR><!-- innen<BR>var stringcolor="black" //string color<BR>var ballsrc="</FONT><A href="http://twm.faxunil.hu/muhely/images/ball.gif"><FONT color=#ffff00>http://twm.faxunil.hu/muhely/images/ball.gif</FONT></A><FONT color=#ffff00>" //képfájl elérési úttal</FONT></P> <P><FONT color=#ffff00>///A további részben ne változtass//////////////////////////</FONT></P> <P><FONT color=#ffff00>if (document.all&&window.print){<BR>document.write('<IMG id=Om style="LEFT: -10px; POSITION: absolute" src="'+ballsrc+'">')<BR>ddx=0;ddy=0;PX=0;PY=0;xm=0;ym=0<BR>OmW=Om.width/2;OmH=Om.height/2<BR>}</FONT></P> <P><FONT color=#ffff00>function Ouille(){<BR> x=Math.round(PX+=(ddx+=((xm-PX-ddx)*3)/100))<BR> y=Math.round(PY+=(ddy+=((ym-PY-ddy)*3-300)/100))<BR> Om.style.left=x-OmW<BR> Om.style.top=y-OmH<BR> elastoc.to=x+","+y<BR> //elastoc.strokecolor="RGB("+x+","+(2*y)+",0)"<BR> elastoc.strokecolor=stringcolor<BR> setTimeout("Ouille()",1) <BR>}<BR>function momouse(){<BR> xm=window.event.x+5<BR> ym=window.event.y+document.body.scrollTop+15<BR> elastoc.from=xm+","+ym<BR></FONT><FONT color=#6699ff>}</FONT></P> <P><FONT color=#6699ff>if(document.all&&window.print){<BR>code="<v:line id=elastoc style='LEFT:0;POSITION:absolute;TOP:0' strokeweight='1.5pt'></v:line>"} else {<BR>code="<v:group style='LEFT:-10;WIDTH:100pt;POSITION:absolute;TOP:0;HEIGHT:100pt' coordsize='21600,21600'><v:line id=elastoc style='LEFT:0;WIDTH:100pt;POSITION:absolute;TOP:0;HEIGHT:100pt' strokeweight='1.5pt'></v:line></v:group>"}</FONT></P> <P><FONT color=#6699ff>if(document.all&&window.print){<BR>document.body.insertAdjacentHTML("afterBegin",code)<BR>document.onmousemove=momouse<BR>Ouille()<BR>}<BR>// eddig --><BR></SCRIPT> </FONT></P> <P><FONT color=#6699ff>
</FONT></P> <P><FONT color=#ffffff><LAYER CLIP="0,0,3,3" BGCOLOR="#FFFF00" VISIBILITY="SHOW" TOP="10" LEFT="10" NAME="a0"></LAYER><BR><LAYER CLIP="0,0,3,3" BGCOLOR="#FFFF00" VISIBILITY="SHOW" TOP="10" LEFT="10" NAME="a1"></LAYER><BR><LAYER CLIP="0,0,3,3" BGCOLOR="#FFFF00" VISIBILITY="SHOW" TOP="10" LEFT="10" NAME="a2"></LAYER><BR><LAYER CLIP="0,0,3,3" BGCOLOR="#FFFF00" VISIBILITY="SHOW" TOP="10" LEFT="10" NAME="a3"></LAYER><BR><LAYER CLIP="0,0,3,3" BGCOLOR="#FFFF00" VISIBILITY="SHOW" TOP="10" LEFT="10" NAME="a4"></LAYER><BR><LAYER CLIP="0,0,3,3" BGCOLOR="#FFFF00" VISIBILITY="SHOW" TOP="10" LEFT="10" NAME="a5"></LAYER><BR><LAYER CLIP="0,0,3,3" BGCOLOR="#FFFF00" VISIBILITY="SHOW" TOP="10" LEFT="10" NAME="a6"></LAYER></FONT></P> <P><FONT color=#ffffff> <SCRIPT language=JavaScript><BR><!--</FONT></P> <P><FONT color=#ffffff>/*<BR>Dancing Stars cursor (Submitted by Kurt at </FONT><A href="mailto:kurt.grigg@virgin.net"><FONT color=#ffffff>kurt.grigg@virgin.net</FONT></A><FONT color=#ffffff>)<BR>Modified and permission granted to Dynamic Drive to feature script in archive<BR>For full source, usage terms, and 100's more DHTML scripts, visit </FONT><A href="http://dynamicdrive.com/"><FONT color=#ffffff>http://dynamicdrive.com</FONT></A><BR><FONT color=#ffffff>*/</FONT></P> <P><FONT color=#ffffff>if (document.all){<BR>document.write('<div id="starsDiv" style="position:absolute;top:0px;left:0px">')<BR>for (xy=0;xy<7;xy++)<BR>document.write('<div style="position:relative;width:3px;height:3px;background:#FFFF00;font-size:2px;visibility:visible"></div>')<BR>document.write('</div>')<BR>}</FONT></P> <P><FONT color=#ffffff>if (document.layers)<BR>{window.captureEvents(Event.MOUSEMOVE);}<BR>var yBase = 200;<BR>var xBase = 200;<BR>var yAmpl = 10;<BR>var yMax = 40;<BR>var step = .2;<BR>var ystep = .5;<BR>var currStep = 0;<BR>var tAmpl=1;<BR>var Xpos = 1;<BR>var Ypos = 1;<BR>var i = 0;<BR>var j = 0;</FONT></P> <P><FONT color=#ffffff>if (document.all)<BR>{<BR> function MoveHandler(){<BR> Xpos = document.body.scrollLeft+event.x;<BR> Ypos = document.body.scrollTop+event.y;<BR> }<BR> document.onmousemove = MoveHandler; <BR>}</FONT></P> <P><FONT color=#ffffff>else if (document.layers)<BR>{<BR> function xMoveHandler(evnt){<BR> Xpos = evnt.pageX;<BR> Ypos = evnt.pageY;<BR> }<BR> window.onMouseMove = xMoveHandler;<BR>}</FONT></P> <P><FONT color=#ffffff> </FONT></P> <P><FONT color=#ffffff>function animateLogo() {<BR>if (document.all)<BR>{<BR> yBase = window.document.body.offsetHeight/4;<BR> xBase = window.document.body.offsetWidth/4;<BR>}<BR>else if (document.layers)<BR>{<BR> yBase = window.innerHeight/4 ;<BR> xBase = window.innerWidth/4;<BR>}</FONT></P> <P><FONT color=#ffffff>if (document.all)<BR>{<BR>var totaldivs=document.all.starsDiv.all.length<BR> for ( i = 0 ; i < totaldivs ; i++ )<BR> {<BR>var tempdiv=document.all.starsDiv.all[i].style<BR> tempdiv.top = Ypos + Math.cos((20*Math.sin(currStep/20))+i*70)*yBase*(Math.sin(10+currStep/10)+0.2)*Math.cos((currStep + i*25)/10);<BR> tempdiv.left = Xpos + Math.sin((20*Math.sin(currStep/20))+i*70)*xBase*(Math.sin(10+currStep/10)+0.2)*Math.cos((currStep + i*25)/10);<BR> }<BR>}</FONT></P> <P><FONT color=#ffffff>else if (document.layers)<BR>{<BR> for ( j = 0 ; j < 7 ; j++ ) <BR> {<BR>var templayer="a"+j<BR> document.layers[templayer].top = Ypos + Math.cos((20*Math.sin(currStep/20))+j*70)*yBase*(Math.sin(10+currStep/10)+0.2)*Math.cos((currStep + j*25)/10);<BR> document.layers[templayer].left =Xpos + Math.sin((20*Math.sin(currStep/20))+j*70)*xBase*(Math.sin(10+currStep/10)+0.2)*Math.cos((currStep + j*25)/10);<BR> }<BR>}<BR>currStep += step;<BR>setTimeout("animateLogo()", 15);<BR>}<BR>animateLogo();<BR>// --><BR></SCRIPT> </FONT></P> <P><FONT color=#ffffff>
</FONT></P> <P><FONT color=#6699ff> <SCRIPT language=JavaScript></FONT></P> <P><FONT color=#6699ff>var a_Colour="red";<BR>var b_Colour="blue";<BR>var c_Colour="green";<BR>var Size=100;</FONT></P> <P><FONT color=#6699ff>var YDummy=new Array(),XDummy=new Array(),xpos=0,ypos=0,ThisStep=0;step=0.03;<BR>if (document.layers){<BR>window.captureEvents(Event.MOUSEMOVE);<BR>function nsMouse(evnt){<BR>xpos = window.pageYOffset+evnt.pageX+6;<BR>ypos = window.pageYOffset+evnt.pageY+16;<BR>}<BR>window.onMouseMove = nsMouse;<BR>}<BR>else if (document.all)<BR>{<BR>function ieMouse(){<BR>xpos = document.body.scrollLeft+event.x+6;<BR>ypos = document.body.scrollTop+event.y+16;<BR>}<BR>document.onmousemove = ieMouse;<BR>}</FONT></P> <P><FONT color=#6699ff>function swirl(){<BR>for (i = 0; i < 3; i++)<BR> { <BR> YDummy[i]=ypos+Size*Math.cos(ThisStep+i*2)*Math.sin((ThisStep)*6);<BR> XDummy[i]=xpos+Size*Math.sin(ThisStep+i*2)*Math.sin((ThisStep)*6);<BR> }<BR>ThisStep+=step;<BR>setTimeout('swirl()',10);<BR>}</FONT></P> <P><FONT color=#6699ff>var amount=10;<BR>if (document.layers){<BR>for (i = 0; i < amount; i++)<BR>{<BR>document.write('<layer name=nsa'+i+' top=0 left=0 width='+i/2+' height='+i/2+' bgcolor='+a_Colour+'></layer>');<BR>document.write('<layer name=nsb'+i+' top=0 left=0 width='+i/2+' height='+i/2+' bgcolor='+b_Colour+'></layer>');<BR>document.write('<layer name=nsc'+i+' top=0 left=0 width='+i/2+' height='+i/2+' bgcolor='+c_Colour+'></layer>');<BR>}<BR>}<BR>else if (document.all){<BR>document.write('<div id="ODiv" style="position:absolute;top:0px;left:0px">'<BR>+'<div id="IDiv" style="position:relative">');<BR>for (i = 0; i < amount; i++)<BR>{<BR>document.write('<div id=x style="position:absolute;top:0px;left:0px;width:'+i/2+';height:'+i/2+';background:'+a_Colour+';font-size:'+i/2+'"></div>');<BR>document.write('<div id=y style="position:absolute;top:0px;left:0px;width:'+i/2+';height:'+i/2+';background:'+b_Colour+';font-size:'+i/2+'"></div>');<BR>document.write('<div id=z style="position:absolute;top:0px;left:0px;width:'+i/2+';height:'+i/2+';background:'+c_Colour+';font-size:'+i/2+'"></div>');<BR>}<BR>document.write('</div></div>');<BR>}<BR>function prepos(){<BR>var ntscp=document.layers;<BR>var msie=document.all;<BR>if (document.layers){<BR>for (i = 0; i < amount; i++)<BR>{<BR> if (i < amount-1) <BR> {<BR> ntscp['nsa'+i].top=ntscp['nsa'+(i+1)].top;ntscp['nsa'+i].left=ntscp['nsa'+(i+1)].left;<BR> ntscp['nsb'+i].top=ntscp['nsb'+(i+1)].top;ntscp['nsb'+i].left=ntscp['nsb'+(i+1)].left;<BR> ntscp['nsc'+i].top=ntscp['nsc'+(i+1)].top;ntscp['nsc'+i].left=ntscp['nsc'+(i+1)].left;<BR> } <BR>else <BR> {<BR> ntscp['nsa'+i].top=YDummy[0];ntscp['nsa'+i].left=XDummy[0];<BR> ntscp['nsb'+i].top=YDummy[1];ntscp['nsb'+i].left=XDummy[1];<BR> ntscp['nsc'+i].top=YDummy[2];ntscp['nsc'+i].left=XDummy[2];<BR> }<BR>}<BR>}<BR>else if (document.all){<BR>for (i = 0; i < amount; i++)<BR>{<BR> if (i < amount-1) <BR> {<BR> msie.x[i].style.top=msie.x[i+1].style.top;msie.x[i].style.left=msie.x[i+1].style.left;<BR> msie.y[i].style.top=msie.y[i+1].style.top;msie.y[i].style.left=msie.y[i+1].style.left;<BR> msie.z[i].style.top=msie.z[i+1].style.top;msie.z[i].style.left=msie.z[i+1].style.left;<BR> } <BR>else <BR> {<BR> msie.x[i].style.top=YDummy[0];msie.x[i].style.left=XDummy[0];<BR> msie.y[i].style.top=YDummy[1];msie.y[i].style.left=XDummy[1];<BR> msie.z[i].style.top=YDummy[2];msie.z[i].style.left=XDummy[2];<BR> }<BR>}<BR>}<BR>setTimeout("prepos()",10);<BR>}<BR>function Start(){<BR>swirl(),prepos()<BR>}<BR>window.onload=Start;<BR>// --><BR> </SCRIPT> </FONT></P>