Indonesia
<!-- 请将下面的原代码插入到<body>下面--> <script Language="JavaScript"> <!-- /****** Hal-hal yang dapat Anda ubah *****/ msg= "欢迎光临建站学院"; pesanUkuran=4;//1-7 FoNt='Arial'; WarnaLoR='777777'; kecepatan=2; /****** Hal-hal yang tidak boleh Anda ubah *****/ ns=(document.layers)?1:0; pesan=pesan.split(''),jumlah=pesan.panjang,Y=0,X=0,ypos=0,xpos=0,ybase=Array baru(),xbase=Array baru(); sudut = Array baru(),divTop= Array baru(),divLeft=Array baru(); DocHeight=(document.layers)?window.innerHeight:window.document.body.offsetHeight; DocWidth=(document.layers)?window.innerWidth:window.document.body.offsetWidth; //penempatan lapisan awal! untuk (i=0; i < jumlah; i++){ divTop[i]=Math.round(Math.random()*DocHeight); divLeft[i]=Matematika.bulat(Matematika.acak()*Lebar Dokumen); } if (ns){ untuk (i = 0; i < jumlah; i++) {document.write('<nama lapisan=nsd'+i+' top=0 kiri=0 lebar='+msgSize+' height='+msgSize+ '><font face='+FoNt+' size='+msgSize+' color='+CoLoR+'>'+msg[i]+'</font></layer>');} window.captureEvents(Event.MOUSEMOVE ); fungsi nsMouse(evnt){ ypos = evnt.halamanY-20; xpos = acara.halamanX-10; } window.onMouseMove = nsMouse; } else{ document.write('<div id="hldr" style="position:absolute;top:0px;left:0px">') document.write('<div style="position:relative">') untuk (i=0; i < jumlah; i++) {document.write('<div id=ied style="position:absolute;top:0px;left:0px;width:'+msgSize+';height:'+msgSize+ '"><font face='+FoNt+' size='+msgSize+' color='+CoLoR+'>'+msg[i]+'</font></div>')} document.write('</ div></div>') fungsi ieMouse(){ ypos = event.y-20; xpos = acara.x-10; } dokumen.onmousemove = ieMouse; } fungsi GoToMouse(){ var DocHeight=(document.layers)?window.innerHeight:window.document.body.offsetHeight; var DocWidth=(document.layers)?window.innerWidth:window.document.body.offsetWidth; var iscrll=(document.all)?document.body.scrollTop:0; var nscrll=(dokumen.lapisan)?window.pageYOffset:0; if (!ns)hldr.style.top=iscrll; untuk (i=0; i < jumlah; i++){ Y = ypos - divTop[i]; X = xpos - divLeft[i]; sudut[i] = Math.round(Math.atan2(Y,X) * 180/Math.PI); jika (sudut[i] < 0) sudut[i] += 360; ybase[i]=Matematika.bulat(Matematika.acak()*DocHeight); xbase[i]=Matematika.bulat(Matematika.acak()*Lebar Dokumen); rep=Matematika.bulat(Matematika.acak() * 3); extra=Math.round(Math.random() * 200) if (rep == 3)xbase[i] =-extra; if (rep == 2)xbase[i] =DocWidth+ekstra; jika (rep == 1)ybase[i] =-ekstra; jika (rep == 0)ybase[i] =DocHeight; y = Math.round(kecepatan*Math.sin(angle[i]*Math.PI/180)); x = Math.round(kecepatan*Math.cos(angle[i]*Math.PI/180)); divTop[i]+=y; divKiri[i]+=x; if ((divLeft[i] > kecepatan xpos) && (divLeft[i] < xpos+kecepatan/1.5) && (divTop[i] >= kecepatan ypos/1.5) && (divTop[i] <= ypos+kecepatan /1.5)) {divTop[i]=ybase[i]+nscrll;divLeft[i]=xbase[i]} var layer=(document.layers)?document.layers['nsd'+i]:ied[i ].gaya; lapisan.top=divTop[i];lapisan.kiri=divLeft[i]; } S=setTimeout('GoToMouse()',10); } window.onload=GoToMouse; //--> </skrip>