Indonesia
<!-- 把下列代码加到<head>区域中--> <skrip> Gambar0 = Gambar baru(); Gambar0.src = ""; Jumlah = 12; Tikus = -50; Xtikus = -50; Ypos = Array baru(); Xpos = Array baru(); Kecepatan = Array baru(); tingkat = Array baru(); tumbuh = Array baru(); Langkah = Array baru(); Cstep = Array baru(); nsUkuran = Array baru(); ns = (dokumen.lapisan)?1:0; (dokumen.lapisan)?window.captureEvents(Event.MOUSEMOVE):0; function Mouse(evnt) { Ymouse=(document.layers)?evnt.pageY-20:event.y-20; Xmouse=(dokumen.lapisan)?evnt.pageX:event.x; } (document.layers)?window.onMouseMove=Mouse:document.onmousemove=Mouse; for (i = 0; i < Jumlah; i++) { Ypos[i] = Ymouse; Xpos[i] = Xtikus; Kecepatan[i] = Matematika.acak()*4+1; Clangkah[i] = 0; Langkah[i] = Matematika.acak()*0,1+0,05; tumbuh[i] = 8; nsUkuran[i] = Matematika.acak()*15+5; rate[i] = Matematika.acak()*0,5+0,1; } if (ns) { untuk (i = 0; i < Jumlah; i++) { document.write("<LAYER NAME='sn"+i+"' LEFT=0 TOP=0><img src="+Image0. src+" nama='N' width="+nsSize[i]+" height="+nsSize[i]+"></LAYER>"); } } else { document.write('<div style="position:absolute;top:0px;left:0px"><div style="position:relative">'); for (i = 0; i < Jumlah; i++) { document.write('<img id="si" src="'+Image0.src+'" style="position:absolute;top:0px;left:0px; filter:alfa(opasitas=90)">'); } dokumen.write('</div></div>'); } fungsi MouseBubbles() { var hscrll = (document.layers)?window.pageYOffset:document.body.scrollTop; var wscrll = (dokumen.lapisan)?window.pageXOffset:document.body.scrollLeft; for (i = 0; i < Jumlah; i++){ sy = Kecepatan[i] * Math.sin(270 * Math.PI / 180); sx = Kecepatan[i] * Math.cos(Clangkah[i] * 4); Ypos[i] += sy; Xpos[i] += sx; if (Ypos[i] < -40) { Ypos[i] = Ymouse; Xpos[i] = Xtikus; Kecepatan[i] = Matematika.acak() * 6 + 4; tumbuh[i] = 8; nsUkuran[i] = Matematika.acak() * 15 + 5; } if (ns) { dokumen.lapisan['sn'+i].kiri = Xpos[i] + wscrll; document.layers['sn'+i].top = Ypos[i] + hscrll; } else { si[i].style.pixelLeft = Xpos[i] + wscrll; si[i].style.pixelTop = Ypos[i] + hscrll; si[i].style.width = tumbuh[i]; si[i].style.height = tumbuh[i]; } tumbuh[i] += tingkat[i]; Clangkah[i] += Langkah[i]; jika (tumbuh[i] > 24) tumbuh[i] = 25; } setTimeout('MouseBubbles()', 10); } Gelembung Tikus(); </skrip>