<SCRIPT language=Javascript1.2> <!-- // Original: Altan - http://www.altan.hr/snow --> // Traduit en français (le plus important) par Le Webmestre www.le-webmestre.net info@le-webmestre.net // Script trouvé sur Le Webmestre www.le-webmestre.net info@le-webmestre.net // Retrouvez des centaines de scripts et bien plus... // Nombre de flocons var no = 10; // Vitesse, plus le nombre est petit, plus la vitesse augmente var speed = 30; // URL de l'image var snowflake = "http://www.ladylony.com/oo11.gif"; ////////////////////////////////////////////////////////////////////////////// var ns4up = (document.layers) ? 1 : 0; var ie4up = (document.all) ? 1 : 0; var dx, xp, yp; var am, stx, sty; var i, doc_width = 800, doc_height = 600; if (ns4up) { doc_width = self.innerWidth; doc_height = self.innerHeight; } else if (ie4up) { doc_width = document.body.clientWidth; doc_height = document.body.clientHeight; } dx = new Array(); xp = new Array(); yp = new Array(); am = new Array(); stx = new Array(); sty = new Array(); for (i = 0; i < no; ++ i) { dx[i] = 0; xp[i] = Math.random()*(doc_width-50); yp[i] = Math.random()*doc_height; am[i] = Math.random()*20; stx[i] = 0.02 + Math.random()/10; sty[i] = 0.7 + Math.random(); if (ns4up) { if (i == 0) { document.write("<layer name="dot"+ i +"" left="15" "); document.write("top="15" visibility="show"><img src=""); document.write(snowflake + "" border="0"></layer>"); } else { document.write("<layer name="dot"+ i +"" left="15" "); document.write("top="15" visibility="show"><img src=""); //lwf document.write(snowflake + "" border="0"></layer>"); } } else if (ie4up) { if (i == 0) { document.write("<div id="dot"+ i +"" style="POSITION: "); document.write("absolute; Z-INDEX: "+ i +"; VISIBILITY: "); document.write("visible; TOP: 15px; LEFT: 15px;"><img src=""); document.write(snowflake + "" border="0"></div>"); } else { document.write("<div id="dot"+ i +"" style="POSITION: "); document.write("absolute; Z-INDEX: "+ i +"; VISIBILITY: "); document.write("visible; TOP: 15px; LEFT: 15px;"><img src=""); document.write(snowflake + "" border="0"></div>"); } } } function snowNS() { for (i = 0; i < no; ++ i) { yp[i] += sty[i]; //lwf if (yp[i] > doc_height-50) { xp[i] = Math.random()*(doc_width-am[i]-30); yp[i] = 0; stx[i] = 0.02 + Math.random()/10; sty[i] = 0.7 + Math.random(); doc_width = self.innerWidth; doc_height = self.innerHeight; } dx[i] += stx[i]; document.layers["dot"+i].top = yp[i]; document.layers["dot"+i].left = xp[i] + am[i]*Math.sin(dx[i]); } setTimeout("snowNS()", speed); } function snowIE() { for (i = 0; i < no; ++ i) { yp[i] += sty[i]; if (yp[i] > doc_height-50) { xp[i] = Math.random()*(doc_width-am[i]-30); yp[i] = 0; stx[i] = 0.02 + Math.random()/10; sty[i] = 0.7 + Math.random(); doc_width = document.body.clientWidth; doc_height = document.body.clientHeight; } dx[i] += stx[i]; document.all["dot"+i].style.pixelTop = yp[i]; document.all["dot"+i].style.pixelLeft = xp[i] + am[i]*Math.sin(dx[i]); } setTimeout("snowIE()", speed); } if (ns4up) { snowNS(); } else if (ie4up) { snowIE(); } // fin --> </SCRIPT>
kalp2
<SCRIPT language=JavaScript> if (document.all){ yourLogo='YYYYYY'; logoFont='Webdings'; logoColor='#ff0000'; yourLogo=yourLogo.split(''); L=yourLogo.length; H=0; W=0; R=0; E=0; MY=0; MX=0; Wd=0; Hd=0; F=new Array(); Y=new Array(); X=new Array(); S=new Array(); A=new Array(); B=new Array(); document.write('<div id="outer" style="position:absolute;top:0px;left:0px"><div style="position:relative">'); for (i=0; i < L; i++) document.write('<div id="ie" style="position:absolute;top:0;left:0;width:10px;height:10px;' +'font-family:'+logoFont+';font-size:5px;color:'+logoColor+'">'+yourLogo[i]+'</div>'); document.write('</div></div>'); //Initial Placement! function Set(){ for (i=0; i < L; i++){ H=window.document.body.offsetHeight; W=window.document.body.offsetWidth; A[i]=Math.round(Math.random()*H); B[i]=Math.round(Math.random()*W); S[i]=Math.random()*0.07+0.05; R=Math.round(Math.random()*3); E=Math.round(Math.random()*2500+50) if (R == 3) B[i]=-E; if (R == 2) B[i]=W+E; if (R == 1) A[i]=-E; if (R == 0) A[i]=H; F[i]=W/10; } } Set(); function Assign(){ outer.style.top=document.body.scrollTop; for (i=0; i < L; i++){ F[i]-=S[i]*55; if (F[i] < 2) F[i]=1; ie[i].style.top =Y[i]; ie[i].style.left=X[i]; ie[i].style.fontSize=F[i]; } } function fly(){ MY=window.document.body.clientHeight/2; MX=window.document.body.clientWidth/2; Wd=Math.round(Math.random()*40+5); Hd=Math.round(Math.random()*30+5); for (i=0; i < L; i++) { Y[i]=A[i]+=(MY-A[i])*(S[i]); X[i]=B[i]+=(MX-B[i])*(S[i]); if ((X[i] > MX-Wd) && (X[i] < MX+Wd) && (Y[i] > MY-Hd) && (Y[i] < MY+Hd)){ H=window.document.body.offsetHeight; W=window.document.body.offsetWidth; A[i]=Math.round(Math.random()*H); B[i]=Math.round(Math.random()*W); S[i]=Math.random()*0.05+0.05; R=Math.round(Math.random()*3); E=Math.round(Math.random()*50+50) if (R == 3) B[i]=-E; if (R == 2) B[i]=W+E; if (R == 1) A[i]=-E; if (R == 0) A[i]=H+E; } if ((X[i] < 0) || (X[i] > W) || (Y[i] < 0) || (Y[i] > H)) F[i]=W/10; } Assign(); setTimeout('fly()',20); } window.onload=fly; } // --> </SCRIPT>
gül
<SCRIPT language=JavaScript> if (document.all){ kg=new Image(); kg.src="http://www.ladylony.com/newscr1.gif"; document.write('<span id="rings" style="position:absolute;top:0px;left:0px">' +'<img src="http://www.ladylony.com/newscr1.gif" name="kg" style="position:relative"></span>'); var TimeLinethree = 50; var TimeLineTwo = 0; var TimeLineOne = 0; var ThreeStep = 1.1; var TwoStep = 5.5; var OneStep = 1.5; var xp = 100; var yp = 100; function SmokeRing(){ document.all.rings.document.images["kg"].style.filter='alpha(opacity='+TimeLinethree+')'; document.all.rings.document.images["kg"].style.top=yp + (-TimeLineOne); document.all.rings.document.images["kg"].style.left=xp + (-TimeLineOne); document.all.rings.document.images["kg"].width=126; document.all.rings.document.images["kg"].height=139; TimeLinethree-=ThreeStep; TimeLineTwo+=TwoStep; TimeLineOne+=OneStep; setTimeout('SmokeRing()',10); if ((TimeLineTwo > 380) || (TimeLineOne > 380) || (TimeLinethree < 0)) {TimeLineTwo=0;TimeLineOne=0;TimeLinethree=85; stop=window.document.body.clientHeight-280; sleft=window.document.body.clientWidth/2.5;//? yp=Math.round(Math.random()*stop); xp=Math.round(Math.random()*sleft); document.all.rings.style.top=yp+document.body.scrollTop; document.all.rings.style.left=xp+document.body.scrollLeft; } if ((yp < 80) || (xp < 80)) { yp+=80; xp+=80; } } } if (document.all)SmokeRing(); // --> </SCRIPT>
gül2
<SCRIPT language=JavaScript> if (document.all){ kg=new Image(); kg.src="http://www.ladylony.com/newscr1.gif"; document.write('<span id="rings" style="position:absolute;top:0px;left:0px">' +'<img src="http://www.ladylony.com/newscr1.gif" name="kg" style="position:relative"></span>'); var TimeLinethree = 85; var TimeLineTwo = 0; var TimeLineOne = 0; var ThreeStep = 2.1; var TwoStep = 5.5; var OneStep = 2.5; var xp = 100; var yp = 100; function SmokeRing(){ document.all.rings.document.images["kg"].style.filter='alpha(opacity='+TimeLinethree+')'; document.all.rings.document.images["kg"].style.top=yp + (-TimeLineOne); document.all.rings.document.images["kg"].style.left=xp + (-TimeLineOne); document.all.rings.document.images["kg"].width=TimeLineTwo; document.all.rings.document.images["kg"].height=TimeLineTwo; TimeLinethree-=ThreeStep; TimeLineTwo+=TwoStep; TimeLineOne+=OneStep; setTimeout('SmokeRing()',10); if ((TimeLineTwo > 380) || (TimeLineOne > 380) || (TimeLinethree < 0)) {TimeLineTwo=0;TimeLineOne=0;TimeLinethree=85; stop=window.document.body.clientHeight-280; sleft=window.document.body.clientWidth/2.5;//? yp=Math.round(Math.random()*stop); xp=Math.round(Math.random()*sleft); document.all.rings.style.top=yp+document.body.scrollTop; document.all.rings.style.left=xp+document.body.scrollLeft; } if ((yp < 80) || (xp < 80)) { yp+=80; xp+=80; } } } if (document.all)SmokeRing(); // --> </SCRIPT>
renkli toplar
<SCRIPT language=JavaScript> <!-- Starfield - Kurt Grigg - http://www.btinternet.com/~kurt.grigg/javascript n=20;// Number of stars! n4=(document.layers); ie=(document.all); for (i=0; i < n; i++){ if (n4) document.write("<layer name='stars"+i+"' top=0 left=0 bgcolor=#FFFFFF width=1 height=1></layer>"); else document.write('<div id="stars'+i+'" style="position:absolute;width:1px;height:1px;background:#00FF00;font-size:1px">.</div>'); } h=0; w=0; cy=0; cx=0; y=new Array(); x=new Array(); iy=new Array(); ix=new Array(); dir=new Array(); v=new Array(); ds=new Array(); ac=new Array(); for (i=0; i < n; i++){ iy[i]=Math.random()*h; ix[i]=Math.random()*w; y[i]=iy[i]; x[i]=ix[i]; v[i]=1.3; ac[i]=0; ds[i]=0; } function fly(){ h=(ie)?document.body.clientHeight:window.innerHeight; w=(ie)?document.body.clientWidth:window.innerWidth; sy=(ie)?document.body.scrollTop:window.pageYOffset; sx=(ie)?document.body.scrollLeft:window.pageXOffset; cy=Math.floor((h/2)); cx=Math.floor((w/2)); for (i=0; i < n; i++){ divs=(n4)?document.layers["stars"+i]:document.getElementById("stars"+i).style; ay=y[i]-cy; ax=x[i]-cx; dir[i]=Math.atan2(ay,ax)*180/Math.PI; v[i]+=ac[i]; v[i]+=(v[i]/10); if (v[i] > 0.4 && v[i] < 0.5){ if (!n4){divs.fontSize=2;divs.height=2;divs.width=2} else{divs.clip.height=2;divs.clip.width=2} } if (v[i] > 10){ if (!n4){divs.fontSize=2;divs.height=2;divs.width=2;} else{divs.clip.height=2;divs.clip.width=2;} } if (v[i] > 20){ if (!n4){divs.fontSize=3;divs.height=3;divs.width=3} else{divs.clip.height=3;divs.clip.width=3} } if (v[i] > 30){ if (!n4){divs.fontSize=5;divs.height=5;divs.width=5} else{divs.clip.height=5;divs.clip.width=5} } y[i]+=v[i]*Math.sin(dir[i]*Math.PI/180); x[i]+=v[i]*Math.cos(dir[i]*Math.PI/180); if (y[i] < 0 || y[i] > h-Math.round(v[i]) || x[i] < 0 || x[i] > w-Math.round(v[i])){ iy[i]=Math.random()*h; ix[i]=Math.random()*w; y[i]=iy[i]; x[i]=ix[i]; dx=cy-y[i]; dy=cx-x[i]; ds[i]=Math.sqrt(dy*dy+dx*dx); ac[i]+=(-(ds[i]*ds[i])+(160000))/(100000000);//? v[i]=Math.floor(ds[i]/40); if (!n4){divs.fontSize=1;divs.height=1;divs.width=1} else{divs.clip.height=1;divs.clip.width=1} } divs.top=y[i]+sy; divs.left=x[i]+sx; } setTimeout('fly()',10); } fly(); // --> </SCRIPT>
havai fişek
<STYLE type=text/css> body { overflow-x: hidden; } v:* { behavior: url(#default#VML); } </STYLE> </HEAD> <BODY> <DIV> </DIV> <SCRIPT language=JavaScript> /* VML Fireworks script -- By Jacco IJzerman (j.ijzerman1@REMOVETHISchello.nl) Permission granted to Dynamicdrive.com to feature script in archive. For full source code, visit http://www.dynamicdrive.com/ */ //Customize fireworks colors: colors = new Array(); colors[0] = new Array('yellow', 'lime'); colors[1] = new Array('silver', 'green') colors[2] = new Array('silver', 'blue'); colors[3] = new Array('silver', 'purple'); colors[4] = new Array('purple', 'white'); colors[5] = new Array('blue', 'silver'); colors[6] = new Array('red', 'fuchsia'); colors[7] = new Array('yellow', 'red'); maximum = 1000; vmlobj=''; for(i = 0; i < 12; i++){ vmlobj += '<div id="ster'+i+'" style="position:absolute; left:-50px; top-50px; visibility:hidden; z-index:50;">'; vmlobj += '<v:shape style="width:15px; height:15px;" fillcolor="yellow" coordorigin="0,0" coordsize="200 200">'; vmlobj += '<v:path v="m 8,65 l 72,65, 92,11, 112,65, 174,65, 122,100, 142,155,92,121, 42,155, 60,100 x e"/>'; vmlobj += '<v:stroke on="false" /></v:shape></div>'; } document.write(vmlobj); vmlobj = null; aantal = 0; function begin() { try { if(aantal == maximum){ return;} kleurschema = Math.floor(Math.random() * colors.length); posLinks = Math.floor(Math.random() * (document.body.clientWidth - 180)); posLinks = (posLinks < 170)? 170: posLinks; posBoven = Math.floor(Math.random() * (document.body.clientHeight - 180)); posBoven = (posBoven < 170)? 170: posBoven; straal = 0; uiteen = true; teller = 1; flikkereffect = false; for(var i = 0; i < 12; i++){ document.getElementsByTagName('shape')[i].setAttribute('fillcolor', colors[kleurschema][0]); document.getElementById('ster'+i).style.visibility = 'hidden'; // 5.0 fix document.getElementById('ster'+i).style.left = posLinks; document.getElementById('ster'+i).style.top = posBoven; } document.getElementById('ster0').style.top = (document.body.clientHeight - 20); document.getElementById('ster0').style.visibility = 'visible'; omhoog(); } catch(e){} } function omhoog() { try { positie = parseInt(document.getElementById('ster0').style.top); if(positie > posBoven){ document.getElementById('ster0').style.top = (positie - 25); setTimeout('omhoog()', 50); } else { for(i = 1; i < 12; i++){ document.getElementById('ster'+i).style.top = positie; document.getElementById('ster'+i).style.visibility = 'visible'; } uiteenspatten(); } } catch(e){} } function uiteenspatten() { try { if(straal > 120 && straal % 10 == 0){ flikkereffect = true; teller = (teller == colors[kleurschema].length)? 0: (teller+1); } for(var i = 0; i < 12; i++){ var hoek = i * 30; var piHoek = Math.PI - Math.PI / 180 * hoek; var links = posLinks + Math.round(straal * Math.sin(piHoek)); var boven = positie + Math.round(straal * Math.cos(piHoek)); document.getElementById('ster'+i).style.left = links; document.getElementById('ster'+i).style.top = boven; if(flikkereffect){ document.getElementsByTagName('shape')[i].setAttribute('fillcolor', colors[kleurschema][teller]); } } if(straal < 160 && uiteen){ straal += (straal < 120)? 10: 5; setTimeout('uiteenspatten()', 50); } else if(straal > 120){ uiteen = false; straal -= 5; setTimeout('uiteenspatten()', 50); } else if(straal <= 120){ for(var i = 0; i < 12; i++){ document.getElementById('ster'+i).style.visibility = 'hidden'; } aantal++; setTimeout('begin()', 500); } } catch(e) {} } window.onload=begin; </SCRIPT>
mor papatya
<SCRIPT language=JavaScript1.2> //especifique a imagem que vc vai usar e altere o IMG SRC var cursorpath="blume.gif" if (document.layers) {document.write("<LAYER NAME='PoInTeRs' LEFT=10 TOP=10><img src='"+cursorpath+"'></LAYER>")} else if (document.all){document.write("<div id='pOiNtErS' style='position:absolute;top:10px;left:10px;width:17px;height:22px;z-index:50'><img src='"+cursorpath+"'></div>")} count=-1; move=1; function Curve(){ abc=new Array(0,1,1,1,2,3,4,0,6,-1,-1,-1,-2,-3,-4,0,-6) for (i=0; i < abc.length; i++) {var C=Math.round(Math.random()*[i])} howbend=abc[C]; setTimeout('Curve()',1900); return howbend; } ypos=10; xpos=10; degree = 60; function MoveRandom(){ PathBend=degree+=howbend;//ok! y = 4*Math.sin(PathBend*Math.PI/180); x = 6*Math.cos(PathBend*Math.PI/180); if (document.layers){ ypos+=y; xpos+=x; document.PoInTeRs.top=ypos+window.pageYOffset; document.PoInTeRs.left=xpos+window.pageXOffset; } else if (document.all){ ypos+=y; xpos+=x; document.all.pOiNtErS.style.top=ypos+document.body.scrollTop; document.all.pOiNtErS.style.left=xpos+document.body.scrollLeft; } T=setTimeout('MoveRandom()',50); } function edges(){ if (document.layers){ if (document.PoInTeRs.left >= window.innerWidth-40+window.pageXOffset)degree=Math.round(Math.random()*45+157.5); if (document.PoInTeRs.top >= window.innerHeight-30+window.pageYOffset)degree=Math.round(Math.random()*45-112.5); if (document.PoInTeRs.top <= 2+window.pageYOffset) degree = Math.round(Math.random()*45+67.5);//OK! if (document.PoInTeRs.left <= 2+window.pageXOffset) degree = Math.round(Math.random()*45-22.5);//OK! } else if (document.all) { if (document.all.pOiNtErS.style.pixelLeft >= document.body.offsetWidth-45+document.body.scrollLeft)degree=Math.round(Math.random()*45+157.5); if (document.all.pOiNtErS.style.pixelTop >= document.body.offsetHeight-35+document.body.scrollTop)degree=Math.round(Math.random()*45-112.5); if (document.all.pOiNtErS.style.pixelTop <= 2+document.body.scrollTop) degree = Math.round(Math.random()*45+67.5);//OK! if (document.all.pOiNtErS.style.pixelLeft <= 2+document.body.scrollLeft) degree = Math.round(Math.random()*45-22.5);//OK! } setTimeout('edges()',100); } function starteffect(){ Curve(); MoveRandom();// onUnload="opener.gO()" edges(); } if (document.all||document.layers) window.onload=starteffect </SCRIPT>
yağmur
<SCRIPT language=JavaScript> <!-- Original: Matthew Musgrove ( muskrat@lvnworth.com) --> <!-- Web Site: http://free.prohosting.com/~musgrove --> <!-- This script and many more are available free online at --> <!-- Javafile.com http://www.javafile.com --> <!-- Begin var no = 50; var speed = 1; var ns4up = (document.layers) ? 1 : 0; var ie4up = (document.all) ? 1 : 0; var s, x, y, sn, cs; var a, r, cx, cy; var i, doc_width = 800, doc_height = 600; if (ns4up) { doc_width = self.innerWidth; doc_height = self.innerHeight; } else if (ie4up) { doc_width = document.body.clientWidth; doc_height = document.body.clientHeight; } x = new Array(); y = new Array(); r = new Array(); cx = new Array(); cy = new Array(); s = 8; for (i = 0; i < no; ++ i) { initRain(); if (ns4up) { if (i == 0) { document.write("<layer name="dot"+ i +"" left="1" "); document.write("top="1" visibility="show"><font color="white">"); document.write(",</font></layer>"); } else { document.write("<layer name="dot"+ i +"" left="1" "); document.write("top="1" visibility="show"><font color="white">"); document.write(",</font></layer>"); } } else if (ie4up) { if (i == 0) { document.write("<div id="dot"+ i +"" style="POSITION: "); document.write("absolute; Z-INDEX: "+ i +"; VISIBILITY: "); document.write("visible; TOP: 15px; LEFT: 15px;"><font color="white">"); document.write(",</font></div>"); } else { document.write("<div id="dot"+ i +"" style="POSITION: "); document.write("absolute; Z-INDEX: "+ i +"; VISIBILITY: "); document.write("visible; TOP: 15px; LEFT: 15px;"><font color="white">"); document.write(",</font></div>"); } } } function initRain() { a = 6; r[i] = 1; sn = Math.sin(a); cs = Math.cos(a); cx[i] = Math.random() * doc_width + 1; cy[i] = Math.random() * doc_height + 1; x[i] = r[i] * sn + cx[i]; y[i] = cy[i]; } function makeRain() { r[i] = 1; cx[i] = Math.random() * doc_width + 1; cy[i] = 1; x[i] = r[i] * sn + cx[i]; y[i] = r[i] * cs + cy[i]; } function updateRain() { r[i] += s; x[i] = r[i] * sn + cx[i]; y[i] = r[i] * cs + cy[i]; } function raindropNS() { for (i = 0; i < no; ++ i) { updateRain(); if ((x[i] <= 1) || (x[i] >= (doc_width - 20)) || (y[i] >= (doc_height - 20))) { makeRain(); doc_width = self.innerWidth; doc_height = self.innerHeight; } document.layers["dot"+i].top = y[i]; document.layers["dot"+i].left = x[i]; } setTimeout("raindropNS()", speed); } function raindropIE() { for (i = 0; i < no; ++ i) { updateRain(); if ((x[i] <= 1) || (x[i] >= (doc_width - 20)) || (y[i] >= (doc_height - 20))) { makeRain(); doc_width = document.body.clientWidth; doc_height = document.body.clientHeight; } document.all["dot"+i].style.pixelTop = y[i]; document.all["dot"+i].style.pixelLeft = x[i]; } setTimeout("raindropIE()", speed); } if (ns4up) { raindropNS(); } else if (ie4up) { raindropIE(); } // End --> </SCRIPT>
nota
<!-- --></P> <DIV align=center> <CENTER> <TBODY> <TR> <TD width="100%"><IMG id=pic0 style="LEFT: -200px; POSITION: absolute; TOP: 0px" height=42 src="http://www.ladylony.com/letramsc1.gif" width=43><FONT color=#008080> <IMG id=pic1 style="LEFT: -200px; POSITION: absolute; TOP: 0px" height=42 src="http://www.ladylony.com/letramsc2.gif" width=43> <IMG id=pic2 style="LEFT: -200px; POSITION: absolute; TOP: 0px" height=42 src="http://www.ladylony.com/letramsc1.gif" width=43> <IMG id=pic3 style="LEFT: -200px; POSITION: absolute; TOP: 0px" height=42 src="http://www.ladylony.com/letramsc3.gif" width=43> <IMG id=pic4 style="LEFT: -200px; POSITION: absolute; TOP: 0px" height=42 src="http://www.ladylony.com/letramsc1.gif" width=43> <IMG id=pic5 style="LEFT: -200px; POSITION: absolute; TOP: 0px" height=42 src="http://www.ladylony.com/letramsc2.gif" width=43> <IMG id=pic6 style="LEFT: -200px; POSITION: absolute; TOP: 0px" height=42 src="http://www.ladylony.com/letramsc3.gif" width=43><IMG id=pic7 style="LEFT: -200px; POSITION: absolute; TOP: 0px" height=42 src="http://www.ladylony.com/letramsc2.gif" width=43> <IMG id=pic8 style="LEFT: -200px; POSITION: absolute; TOP: 0px" height=40 src="http://www.ladylony.com/letramsc3.gif" width=43> <IMG id=pic9 style="LEFT: -200px; POSITION: absolute; TOP: 0px" height=42 src="http://www.ladylony.com/letramsc2.gif" width=43> </FONT> <P><FONT color=#008080> <SCRIPT language=VBSCRIPT> REM Edgar V. Poirier REM moomoo@nbnet.nb.ca REM IMPORTANT: Value in brackets for the arrays below taken from last image number. REM The number in brackets for an array represent the total number of REM items in the array. Note that the first item is number 0. Dim w, wW, wH, an(9), x(9), y(9), ox(9), oy(9), c(9), cW, cH, sL, sT, numPics, capture Set w=document.body REM Initialize sub setUp() REM Get window dimensions cW=w.clientWidth cH=w.clientHeight sL=w.scrollLeft sT=w.scrollTop capture=153 REM IMPORTANT: Enter number of last image here numPics=9 for i=0 to numPics randomize REM Initially none are bouncing c(i)=0 REM Number of pixels to move image per step ox(i)=4 oy(i)=-4 REM Initial coordinates an(i)=3.14159-i x(i)=Int(COS(an(i))* 50)+70 y(i)=Int(SIN(an(i))* 50)+70 REM Inverta COS e SIN para giro em sentido contrário document.all("pic"&i).style.top=y(i) document.all("pic"&i).style.left=x(i) next REM start bouncing bnce end sub sub bnce() ClearTimeOut(myTimer) REM VBScript version of bounce routine REM Loop for each object for i=0 to numPics if c(i)=1 then REM This one is bouncing so check to see if REM it is near the juggler. If too close, catch it. if x(i)<50 and y(i)<50 then c(i)=0 ox(i)=4 oy(i)=-4 end if REM Calculate next move for bouncing object. p="pic"&i Set bal=document.all(p) REM Increment position REM x(i)=x(i)+ox(i)*1.5 y(i)=y(i)+oy(i) REM Check for walls on right or left if (x(i) + bal.offsetWidth > cW + sL) OR (x(i) <= sL) then ox(i)=-ox(i) if (x(i) < sL) then x(i) = sL if (x(i) + bal.width > cW + sL) then x(i) = cW - bal.offsetWidth + sL end if REM Check for walls on bottom or top if (y(i) + bal.offsetHeight > cH + sT) OR (y(i) <= sT+R) then oy(i)=-oy(i) if (y(i) < sT+R) then y(i) = sT+R if (y(i) + bal.offsetHeight > cH + sT) then y(i) = cH - bal.offsetHeight + sT end if REM Position object bal.style.posTop = y(i) bal.style.posLeft = x(i) else REM Juggle the images an(i)=an(i)-.1 x(i)=Int(COS(an(i))* 50)+70+sL y(i)=Int(SIN(an(i))* 50)+70+sT document.all("pic"&i).style.top=y(i) document.all("pic"&i).style.left=x(i) REM Pick a number sw=INT(rnd*1000) REM If number is divisible by 333 then release bird. if sw mod 333 = 0 then c(i)=1 end if next REM Repeat. If bounce is too fast, increase the number REM in the line below from the default value of 2. myTimer=SetTimeOut("bnce",4) end sub REM This sub starts the action as soon as the message is received. sub window_OnLoad() setUp end sub REM In case window is re-sized then re-calculate sub window_OnResize() setUp end sub REM In case text is scrolled, this keeps the bouncing objects inside the window. sub window_OnScroll() sL=w.scrollLeft sT=w.scrollTop end sub </SCRIPT>
kelebek
<script language="JavaScript1.2"> /* Flying Butterfly script (By BGAudioDr@aol.com) Modified slightly/ permission granted to Dynamic Drive to feature script in archive */ var Ymax=8; //MAX # OF PIXEL STEPS IN THE "X" DIRECTION var Xmax=8; //MAX # OF PIXEL STEPS IN THE "Y" DIRECTION var Tmax=10000; //MAX # OF MILLISECONDS BETWEEN PARAMETER CHANGES //FLOATING IMAGE URLS FOR EACH IMAGE. ADD OR DELETE ENTRIES. KEEP ELEMENT NUMERICAL ORDER STARTING WITH "0" !! var floatimages=new Array(); floatimages[0]='http://www.ladylony.com/butterfly202.gif'; floatimages[1]='http://www.ladylony.com/butterfly202.gif'; //*********DO NOT EDIT BELOW*********** var NS4 = (navigator.appName.indexOf("Netscape")>=0 && parseFloat(navigator.appVersion) >= 4 && parseFloat(navigator.appVersion) < 5)? true : false; var IE4 = (document.all)? true : false; var NS6 = (parseFloat(navigator.appVersion) >= 5 && navigator.appName.indexOf("Netscape")>=0 )? true: false; var wind_w, wind_h, t='', IDs=new Array(); for(i=0; i<floatimages.length; i++){ t+=(NS4)?'<layer name="pic'+i+'" visibility="hide" width="10" height="10"><a ">' : '<div id="pic'+i+'" style="position:absolute; visibility:hidden;width:10px; height:10px"><a >'; t+='<img src="'+floatimages[i]+'" name="p'+i+'" border="0">'; t+=(NS4)? '</a></layer>':'</a></div>'; } document.write(t); function moveimage(num){ if(getidleft(num)+IDs[num].W+IDs[num].Xstep >= wind_w+getscrollx())IDs[num].Xdir=false; if(getidleft(num)-IDs[num].Xstep<=getscrollx())IDs[num].Xdir=true; if(getidtop(num)+IDs[num].H+IDs[num].Ystep >= wind_h+getscrolly())IDs[num].Ydir=false; if(getidtop(num)-IDs[num].Ystep<=getscrolly())IDs[num].Ydir=true; moveidby(num, (IDs[num].Xdir)? IDs[num].Xstep : -IDs[num].Xstep , (IDs[num].Ydir)? IDs[num].Ystep: -IDs[num].Ystep); } function getnewprops(num){ IDs[num].Ydir=Math.floor(Math.random()*2)>0; IDs[num].Xdir=Math.floor(Math.random()*2)>0; IDs[num].Ystep=Math.ceil(Math.random()*Ymax); IDs[num].Xstep=Math.ceil(Math.random()*Xmax) setTimeout('getnewprops('+num+')', Math.floor(Math.random()*Tmax)); } function getscrollx(){ if(NS4 || NS6)return window.pageXOffset; if(IE4)return document.body.scrollLeft; } function getscrolly(){ if(NS4 || NS6)return window.pageYOffset; if(IE4)return document.body.scrollTop; } function getid(name){ if(NS4)return document.layers[name]; if(IE4)return document.all[name]; if(NS6)return document.getElementById(name); } function moveidto(num,x,y){ if(NS4)IDs[num].moveTo(x,y); if(IE4 || NS6){ IDs[num].style.left=x+'px'; IDs[num].style.top=y+'px'; }} function getidleft(num){ if(NS4)return IDs[num].left; if(IE4 || NS6)return parseInt(IDs[num].style.left); } function getidtop(num){ if(NS4)return IDs[num].top; if(IE4 || NS6)return parseInt(IDs[num].style.top); } function moveidby(num,dx,dy){ if(NS4)IDs[num].moveBy(dx, dy); if(IE4 || NS6){ IDs[num].style.left=(getidleft(num)+dx)+'px'; IDs[num].style.top=(getidtop(num)+dy)+'px'; }} function getwindowwidth(){ if(NS4 || NS6)return window.innerWidth; if(IE4)return document.body.clientWidth; } function getwindowheight(){ if(NS4 || NS6)return window.innerHeight; if(IE4)return document.body.clientHeight; } function init(){ wind_w=getwindowwidth(); wind_h=getwindowheight(); for(i=0; i<floatimages.length; i++){ IDs[i]=getid('pic'+i); if(NS4){ IDs[i].W=IDs[i].document.images["p"+i].width; IDs[i].H=IDs[i].document.images["p"+i].height; } if(NS6 || IE4){ IDs[i].W=document.images["p"+i].width; IDs[i].H=document.images["p"+i].height; } getnewprops(i); moveidto(i , Math.floor(Math.random()*(wind_w-IDs[i].W)), Math.floor(Math.random()*(wind_h-IDs[i].H))); if(NS4)IDs[i].visibility = "show"; if(IE4 || NS6)IDs[i].style.visibility = "visible"; startfly=setInterval('moveimage('+i+')',Math.floor(Math.random()*100)+100); }} function hidebutterfly(){ for(i=0; i<floatimages.length; i++){ if (IE4) eval("document.all.pic"+i+".style.visibility='hidden'") else if (NS6) document.getElementById("pic"+i).style.visibility='hidden' else if (NS4) eval("document.pic"+i+".visibility='hide'") clearInterval(startfly) } } if (NS4||NS6||IE4){ window.onload=init; window.onresize=function(){ wind_w=getwindowwidth(); wind_h=getwindowheight(); } } </script>
kelebek2
<script language="JavaScript1.2"> /* Flying Butterfly script (By BGAudioDr@aol.com) Modified slightly/ permission granted to Dynamic Drive to feature script in archive */ var Ymax=8; //MAX # OF PIXEL STEPS IN THE "X" DIRECTION var Xmax=8; //MAX # OF PIXEL STEPS IN THE "Y" DIRECTION var Tmax=10000; //MAX # OF MILLISECONDS BETWEEN PARAMETER CHANGES //FLOATING IMAGE URLS FOR EACH IMAGE. ADD OR DELETE ENTRIES. KEEP ELEMENT NUMERICAL ORDER STARTING WITH "0" !! var floatimages=new Array(); floatimages[0]='http://www.ladylony.com/butterfly303.gif'; floatimages[1]='http://www.ladylony.com/butterfly303.gif'; //*********DO NOT EDIT BELOW*********** var NS4 = (navigator.appName.indexOf("Netscape")>=0 && parseFloat(navigator.appVersion) >= 4 && parseFloat(navigator.appVersion) < 5)? true : false; var IE4 = (document.all)? true : false; var NS6 = (parseFloat(navigator.appVersion) >= 5 && navigator.appName.indexOf("Netscape")>=0 )? true: false; var wind_w, wind_h, t='', IDs=new Array(); for(i=0; i<floatimages.length; i++){ t+=(NS4)?'<layer name="pic'+i+'" visibility="hide" width="10" height="10"><a ">' : '<div id="pic'+i+'" style="position:absolute; visibility:hidden;width:10px; height:10px"><a >'; t+='<img src="'+floatimages[i]+'" name="p'+i+'" border="0">'; t+=(NS4)? '</a></layer>':'</a></div>'; } document.write(t); function moveimage(num){ if(getidleft(num)+IDs[num].W+IDs[num].Xstep >= wind_w+getscrollx())IDs[num].Xdir=false; if(getidleft(num)-IDs[num].Xstep<=getscrollx())IDs[num].Xdir=true; if(getidtop(num)+IDs[num].H+IDs[num].Ystep >= wind_h+getscrolly())IDs[num].Ydir=false; if(getidtop(num)-IDs[num].Ystep<=getscrolly())IDs[num].Ydir=true; moveidby(num, (IDs[num].Xdir)? IDs[num].Xstep : -IDs[num].Xstep , (IDs[num].Ydir)? IDs[num].Ystep: -IDs[num].Ystep); } function getnewprops(num){ IDs[num].Ydir=Math.floor(Math.random()*2)>0; IDs[num].Xdir=Math.floor(Math.random()*2)>0; IDs[num].Ystep=Math.ceil(Math.random()*Ymax); IDs[num].Xstep=Math.ceil(Math.random()*Xmax) setTimeout('getnewprops('+num+')', Math.floor(Math.random()*Tmax)); } function getscrollx(){ if(NS4 || NS6)return window.pageXOffset; if(IE4)return document.body.scrollLeft; } function getscrolly(){ if(NS4 || NS6)return window.pageYOffset; if(IE4)return document.body.scrollTop; } function getid(name){ if(NS4)return document.layers[name]; if(IE4)return document.all[name]; if(NS6)return document.getElementById(name); } function moveidto(num,x,y){ if(NS4)IDs[num].moveTo(x,y); if(IE4 || NS6){ IDs[num].style.left=x+'px'; IDs[num].style.top=y+'px'; }} function getidleft(num){ if(NS4)return IDs[num].left; if(IE4 || NS6)return parseInt(IDs[num].style.left); } function getidtop(num){ if(NS4)return IDs[num].top; if(IE4 || NS6)return parseInt(IDs[num].style.top); } function moveidby(num,dx,dy){ if(NS4)IDs[num].moveBy(dx, dy); if(IE4 || NS6){ IDs[num].style.left=(getidleft(num)+dx)+'px'; IDs[num].style.top=(getidtop(num)+dy)+'px'; }} function getwindowwidth(){ if(NS4 || NS6)return window.innerWidth; if(IE4)return document.body.clientWidth; } function getwindowheight(){ if(NS4 || NS6)return window.innerHeight; if(IE4)return document.body.clientHeight; } function init(){ wind_w=getwindowwidth(); wind_h=getwindowheight(); for(i=0; i<floatimages.length; i++){ IDs[i]=getid('pic'+i); if(NS4){ IDs[i].W=IDs[i].document.images["p"+i].width; IDs[i].H=IDs[i].document.images["p"+i].height; } if(NS6 || IE4){ IDs[i].W=document.images["p"+i].width; IDs[i].H=document.images["p"+i].height; } getnewprops(i); moveidto(i , Math.floor(Math.random()*(wind_w-IDs[i].W)), Math.floor(Math.random()*(wind_h-IDs[i].H))); if(NS4)IDs[i].visibility = "show"; if(IE4 || NS6)IDs[i].style.visibility = "visible"; startfly=setInterval('moveimage('+i+')',Math.floor(Math.random()*100)+100); }} function hidebutterfly(){ for(i=0; i<floatimages.length; i++){ if (IE4) eval("document.all.pic"+i+".style.visibility='hidden'") else if (NS6) document.getElementById("pic"+i).style.visibility='hidden' else if (NS4) eval("document.pic"+i+".visibility='hide'") clearInterval(startfly) } } if (NS4||NS6||IE4){ window.onload=init; window.onresize=function(){ wind_w=getwindowwidth(); wind_h=getwindowheight(); } } </script>
melek
<script language="JavaScript1.2"> <!-- /* Flying Cupids- script by Kurt (kurt.grigg@virgin.net) For full source, usage terms, and 100's more DHTML scripts */ Cupid=new Image(); Cupid.src="http://www.ladylony.com/cupidcute2.gif"; //specify path to Cupid image amount=3; //Number of cupids, minimum must be 3. Xpos=700; //cupids x coordinates, in pixel Ypos=200; //cupids y coordinates, in pixel step=0.3; //Animation speed (smaller is slower) dismissafter=190; //seconds after which Cupids should disappear, in seconds var ns6=document.getElementById&&!document.all bats=new Array(3) if (document.layers){ for (i=0; i < amount; i++) {document.write("<LAYER NAME=n"+i+" LEFT=0 TOP=-50><a><IMG SRC='"+Cupid.src+"' NAME='nsi' width=69 height=60 border=0></a></LAYER>")} } else if (document.all||ns6){ document.write('<div id="out" style="position:absolute;top:0;left:0"><div id="in" style="position:relative">'); for (i=0; i < amount; i++){ if (document.all) document.write('<a><img src="'+Cupid.src+'" id="msieBats" style="position:absolute;top:-50;left:0" border=0></a>') else document.write('<a><img src="'+Cupid.src+'" id="ns6Bats'+i+'" width=69 height=60 style="position:absolute;top:-50;left:0" border=0></a>') } document.write('</div></div>'); } yBase=xBase=currStep=a_count=0; b_count=1; c_count=2; d_count=3; move=1; if (document.layers||ns6){ yBase=window.innerHeight/3; xBase=window.innerWidth/6; if (document.layers) window.captureEvents(Event.MOUSEMOVE); } if (document.all){ yBase = window.document.body.offsetHeight/3; xBase = window.document.body.offsetWidth/6; } function dismisscupid(){ clearInterval(flycupid) if (document.layers){ for (i2=0; i2 < amount; i2++){ document.layers['n'+i2].visibility="hide" } } else if (document.all) document.all.out.style.visibility="hidden" else if (ns6) document.getElementById("out").style.visibility="hidden" } if (document.layers){ for (i=0; i < amount; i++) document.layers['n'+i].document.images['nsi'].src=Cupid.src } else if (document.all){ for (i=0; i < amount; i++) document.all.msieBats[i].src=Cupid.src } else if (ns6){ for (i=0; i < amount; i++) document.getElementById("ns6Bats"+i).src=Cupid.src } function Animate(){ a_count+=move; b_count+=move; c_count+=move; currStep+=step; if (a_count >= bats.length) a_count=0; if (b_count >= bats.length) b_count=0; if (c_count >= bats.length) c_count=0; if (document.layers){ for (i=0; i < amount; i++) { var NewL="n"+i document.layers[NewL].top = Ypos+yBase*Math.sin(((currStep)+i*3.7)/4)*Math.cos((currStep+i*35)/10) document.layers[NewL].left =Xpos+xBase*Math.cos(((currStep)+i*3.7)/4)*Math.cos((currStep+i*35)/62) } } if (document.all){ for (i=0; i < amount; i++){ document.all.msieBats[i].style.pixelTop = Ypos+yBase*Math.sin(((currStep)+i*3.7)/4)*Math.cos((currStep+i*35)/10) document.all.msieBats[i].style.pixelLeft =Xpos+xBase*Math.cos(((currStep)+i*3.7)/4)*Math.cos((currStep+i*35)/62) } } if (ns6){ for (i=0; i < amount; i++){ document.getElementById("ns6Bats"+i).style.top = Ypos+yBase*Math.sin(((currStep)+i*3.7)/4)*Math.cos((currStep+i*35)/10) document.getElementById("ns6Bats"+i).style.left =Xpos+xBase*Math.cos(((currStep)+i*3.7)/4)*Math.cos((currStep+i*35)/62) } } } flycupid=setInterval('Animate()',30); setTimeout("dismisscupid()",dismissafter*1000) //--> </script>
melek2
<script language="JavaScript1.2"> <!-- /* Flying Cupids- script by Kurt (kurt.grigg@virgin.net) For full source, usage terms, and 100's more DHTML scripts */ Cupid=new Image(); Cupid.src="http://www.ladylony.com/cupidcute.gif"; //specify path to Cupid image amount=3; //Number of cupids, minimum must be 3. Xpos=700; //cupids x coordinates, in pixel Ypos=200; //cupids y coordinates, in pixel step=0.3; //Animation speed (smaller is slower) dismissafter=190; //seconds after which Cupids should disappear, in seconds var ns6=document.getElementById&&!document.all bats=new Array(3) if (document.layers){ for (i=0; i < amount; i++) {document.write("<LAYER NAME=n"+i+" LEFT=0 TOP=-50><a><IMG SRC='"+Cupid.src+"' NAME='nsi' width=69 height=60 border=0></a></LAYER>")} } else if (document.all||ns6){ document.write('<div id="out" style="position:absolute;top:0;left:0"><div id="in" style="position:relative">'); for (i=0; i < amount; i++){ if (document.all) document.write('<a><img src="'+Cupid.src+'" id="msieBats" style="position:absolute;top:-50;left:0" border=0></a>') else document.write('<a><img src="'+Cupid.src+'" id="ns6Bats'+i+'" width=69 height=60 style="position:absolute;top:-50;left:0" border=0></a>') } document.write('</div></div>'); } yBase=xBase=currStep=a_count=0; b_count=1; c_count=2; d_count=3; move=1; if (document.layers||ns6){ yBase=window.innerHeight/3; xBase=window.innerWidth/6; if (document.layers) window.captureEvents(Event.MOUSEMOVE); } if (document.all){ yBase = window.document.body.offsetHeight/3; xBase = window.document.body.offsetWidth/6; } function dismisscupid(){ clearInterval(flycupid) if (document.layers){ for (i2=0; i2 < amount; i2++){ document.layers['n'+i2].visibility="hide" } } else if (document.all) document.all.out.style.visibility="hidden" else if (ns6) document.getElementById("out").style.visibility="hidden" } if (document.layers){ for (i=0; i < amount; i++) document.layers['n'+i].document.images['nsi'].src=Cupid.src } else if (document.all){ for (i=0; i < amount; i++) document.all.msieBats[i].src=Cupid.src } else if (ns6){ for (i=0; i < amount; i++) document.getElementById("ns6Bats"+i).src=Cupid.src } function Animate(){ a_count+=move; b_count+=move; c_count+=move; currStep+=step; if (a_count >= bats.length) a_count=0; if (b_count >= bats.length) b_count=0; if (c_count >= bats.length) c_count=0; if (document.layers){ for (i=0; i < amount; i++) { var NewL="n"+i document.layers[NewL].top = Ypos+yBase*Math.sin(((currStep)+i*3.7)/4)*Math.cos((currStep+i*35)/10) document.layers[NewL].left =Xpos+xBase*Math.cos(((currStep)+i*3.7)/4)*Math.cos((currStep+i*35)/62) } } if (document.all){ for (i=0; i < amount; i++){ document.all.msieBats[i].style.pixelTop = Ypos+yBase*Math.sin(((currStep)+i*3.7)/4)*Math.cos((currStep+i*35)/10) document.all.msieBats[i].style.pixelLeft =Xpos+xBase*Math.cos(((currStep)+i*3.7)/4)*Math.cos((currStep+i*35)/62) } } if (ns6){ for (i=0; i < amount; i++){ document.getElementById("ns6Bats"+i).style.top = Ypos+yBase*Math.sin(((currStep)+i*3.7)/4)*Math.cos((currStep+i*35)/10) document.getElementById("ns6Bats"+i).style.left =Xpos+xBase*Math.cos(((currStep)+i*3.7)/4)*Math.cos((currStep+i*35)/62) } } } flycupid=setInterval('Animate()',30); setTimeout("dismisscupid()",dismissafter*1000) //--> </script>
yarasa
<script language="JavaScript1.2"> <!-- /* Flying Bats- script by Kurt (kurt.grigg@virgin.net) For full source, usage terms, and 100's more DHTML scripts */ Cupid=new Image(); Cupid.src="http://www.ladylony.com/flyingbat.gif"; //specify path to bat image amount=3; //Number of cupids, minimum must be 3. Xpos=700; //cupids x coordinates, in pixel Ypos=200; //cupids y coordinates, in pixel step=0.3; //Animation speed (smaller is slower) dismissafter=140; //seconds after which Cupids should disappear, in seconds var ns6=document.getElementById&&!document.all bats=new Array(3) if (document.layers){ for (i=0; i < amount; i++) {document.write("<LAYER NAME=n"+i+" LEFT=0 TOP=-50><a><IMG SRC='"+Cupid.src+"' NAME='nsi' width=69 height=60 border=0></a></LAYER>")} } else if (document.all||ns6){ document.write('<div id="out" style="position:absolute;top:0;left:0"><div id="in" style="position:relative">'); for (i=0; i < amount; i++){ if (document.all) document.write('<a ><img src="'+Cupid.src+'" id="msieBats" style="position:absolute;top:-50;left:0" border=0></a>') else document.write('<a ><img src="'+Cupid.src+'" id="ns6Bats'+i+'" width=69 height=60 style="position:absolute;top:-50;left:0" border=0></a>') } document.write('</div></div>'); } yBase=xBase=currStep=a_count=0; b_count=1; c_count=2; d_count=3; move=1; if (document.layers||ns6){ yBase=window.innerHeight/3; xBase=window.innerWidth/6; if (document.layers) window.captureEvents(Event.MOUSEMOVE); } if (document.all){ yBase = window.document.body.offsetHeight/3; xBase = window.document.body.offsetWidth/6; } function dismisscupid(){ clearInterval(flycupid) if (document.layers){ for (i2=0; i2 < amount; i2++){ document.layers['n'+i2].visibility="hide" } } else if (document.all) document.all.out.style.visibility="hidden" else if (ns6) document.getElementById("out").style.visibility="hidden" } if (document.layers){ for (i=0; i < amount; i++) document.layers['n'+i].document.images['nsi'].src=Cupid.src } else if (document.all){ for (i=0; i < amount; i++) document.all.msieBats[i].src=Cupid.src } else if (ns6){ for (i=0; i < amount; i++) document.getElementById("ns6Bats"+i).src=Cupid.src } function Animate(){ a_count+=move; b_count+=move; c_count+=move; currStep+=step; if (a_count >= bats.length) a_count=0; if (b_count >= bats.length) b_count=0; if (c_count >= bats.length) c_count=0; if (document.layers){ for (i=0; i < amount; i++) { var NewL="n"+i document.layers[NewL].top = Ypos+yBase*Math.sin(((currStep)+i*3.7)/4)*Math.cos((currStep+i*35)/10) document.layers[NewL].left =Xpos+xBase*Math.cos(((currStep)+i*3.7)/4)*Math.cos((currStep+i*35)/62) } } if (document.all){ for (i=0; i < amount; i++){ document.all.msieBats[i].style.pixelTop = Ypos+yBase*Math.sin(((currStep)+i*3.7)/4)*Math.cos((currStep+i*35)/10) document.all.msieBats[i].style.pixelLeft =Xpos+xBase*Math.cos(((currStep)+i*3.7)/4)*Math.cos((currStep+i*35)/62) } } if (ns6){ for (i=0; i < amount; i++){ document.getElementById("ns6Bats"+i).style.top = Ypos+yBase*Math.sin(((currStep)+i*3.7)/4)*Math.cos((currStep+i*35)/10) document.getElementById("ns6Bats"+i).style.left =Xpos+xBase*Math.cos(((currStep)+i*3.7)/4)*Math.cos((currStep+i*35)/62) } } } flycupid=setInterval('Animate()',30); setTimeout("dismisscupid()",dismissafter*1000) //--> </script>