Indonesia
<!-- 把如下代码加入<body>区域中 --> <!-- http://www.downcodes.com/js --> <!-- bbs http://www.downcodes.com/bbs --> 看看效果怎么样啊:<br> <!-- jam keren --> <Bahasa SCRIPT=JavaScript>dCol='000099';//warna tanggal. fCol='668099';//warna wajah. sCol='FF0000';//detik warna. mCol='000000';//menit warna. hCol='000000';//jam warna. Tinggi Jam=40; Lebar Jam=40; JamDariMouseY=0; JamDariMouseX=100; //Jangan ubah apa pun di bawah! Keselarasan akan hilang! d=new Array("MINGGU","SENIN","SELAMAT","RABU","Kamis","JUMAT","SABTU"); m=new Array("JANUARI","FEBRUARY","MARET","APRIL","MEI","JUNI","JULI","AGUSTUS","SEPTEMBER","OKTOBER","NOVEMBER"," DESEMBER"); tanggal=Tanggal baru(); hari=tanggal.getDate(); tahun=tanggal.getTahun(); jika (tahun < 2000) tahun=tahun+1900; TodaysDate=" "+d[tanggal.getDay()]+" "+hari+" "+m[tanggal.getMonth()]+" "+tahun; D=Tanggal Hari Ini.split(''); H='...'; H=H.split(''); M='....'; M=M.split(''); S='.....'; S=S.split(''); Muka='1 2 3 4 5 6 7 8 9 10 11 12'; //font='Arial'; font='Verdana'; ukuran=1; kecepatan=0,6; ns=(dokumen.lapisan); yaitu=(dokumen.semua); Wajah=Wajah.split(' '); n=Wajah.panjang; a=ukuran*10; kamu tikus=0; xtikus=0; gulir=0; props="<font face="+font+" size="+size+" color="+fCol+"><B>"; props2="<font face="+font+" size="+size+" color="+dCol+"><B>"; Pemisahan=360/n; Dsplit=360/D.panjang; Tinggi Tangan=Tinggi Jam/4,5 Lebar Tangan=Lebar Jam/4,5 TanganY=-7; TanganX=-2,5; gulir=0; langkah=0,06; Langkah saat ini=0; y=Array baru();x=Array baru();Y=Array baru();X=Array baru(); untuk (i=0; i < n; i++){y[i]=0;x[i]=0;Y[i]=0;X[i]=0} Dy=Array baru();Dx= Array baru();DY=Array baru();DX=Array baru(); untuk (i=0; i < D.panjang; i++){Dy[i]=0;Dx[i]=0;DY[i]=0;DX[i]=0} if (ns){ untuk ( i=0; '+props2+D[i]+'</font></center></layer>'); untuk (i=0; i < n; i++) document.write('<layer name="nsFace'+i+'" top=0 left=0 height='+a+' width='+a+'><center> '+alat peraga+Wajah[i]+'</font></center></layer>'); for (i=0; i < S.length; i++) document.write('<nama lapisan=nsSeconds'+i+' top=0 kiri=0 lebar=15 tinggi=15><font face=Ukuran Arial=3 warna ='+sCol+'><center><b>'+S[i]+'</b></center></font></layer>'); for (i=0; i < M.length; i++) document.write('<nama lapisan=nsMinutes'+i+' top=0 kiri=0 lebar=15 tinggi=15><font face=Ukuran Arial=3 warna ='+mCol+'><center><b>'+M[i]+'</b></center></font></layer>'); for (i=0; i < H.length; i++) document.write('<nama lapisan=nsHours'+i+' top=0 kiri=0 lebar=15 tinggi=15><wajah font=ukuran Arial=3 warna ='+hCol+'><center><b>'+H[i]+'</b></center></font></layer>'); } if (yaitu){ document.write('<div id="Od" style="position:absolute;top:0px;left:0px"><div style="position:relative">'); untuk (i=0; i < D.length; i++) document.write('<div id="ieDate" style="position:absolute;top:0px;left:0;height:'+a+';width: '+a+';text-align:center">'+props2+D[i]+'</B></font></div>'); dokumen.write('</div></div>'); document.write('<div id="Of" style="position:absolute;top:0px;left:0px"><div style="position:relative">'); untuk (i=0; i < n; i++) document.write('<div id="ieFace" style="position:absolute;top:0px;left:0;height:'+a+';width:'+ a+';text-align:center">'+props+Wajah[i]+'</B></font></div>'); dokumen.write('</div></div>'); document.write('<div id="Oh" style="position:absolute;top:0px;left:0px"><div style="position:relative">'); untuk (i=0; i < H.length; i++) document.write('<div id="ieHours" style="position:absolute;width:16px;height:16px;font-family:Arial;font-size :16px;color:'+hCol+';text-align:center;font-weight:bold">'+H[i]+'</div>'); dokumen.write('</div></div>'); document.write('<div id="Om" style="position:absolute;top:0px;left:0px"><div style="position:relative">'); untuk (i=0; i < M.length; i++) document.write('<div id="ieMinutes" style="position:absolute;width:16px;height:16px;font-family:Arial;font-size :16px;color:'+mCol+';text-align:center;font-weight:bold">'+M[i]+'</div>'); document.write('</div></div>') document.write('<div id="Os" style="position:absolute;top:0px;left:0px"><div style="position: relatif">'); untuk (i=0; i < S.length; i++) document.write('<div id="ieSeconds" style="position:absolute;width:16px;height:16px;font-family:Arial;font-size :16px;color:'+sCol+';text-align:center;font-weight:bold">'+S[i]+'</div>'); document.write('</div></div>') } (ns)?window.captureEvents(Event.MOUSEMOVE):0; fungsi Mouse(evnt){ ymouse = (ns)?evnt.pageY+ClockFromMouseY-(window.pageYOffset):event.y+ClockFromMouseY; xmouse = (ns)?evnt.pageX+ClockFromMouseX:event.x+ClockFromMouseX; } (ns)?window.onMouseMove=Mouse:document.onmousemove=Mouse; fungsi ClockAndAssign(){ waktu = Tanggal baru(); detik = waktu.getSeconds(); detik = -1,57 + Math.PI * detik/30; menit = waktu.getMinutes(); min = -1,57 + Math.PI * menit/30; jam = waktu.getHours(); jam = -1,575 + Math.PI * jam/6+Math.PI*parseInt(time.getMinutes())/360; jika (yaitu){ Od.style.top=window.document.body.scrollTop; Of.style.top=window.document.body.scrollTop; Oh.style.top=window.document.body.scrollTop; Om.style.top=window.document.body.scrollTop; Os.style.top=window.document.body.scrollTop; } untuk (i=0; saya < n; i++){ var F=(ns)?document.layers['nsFace'+i]:ieFace[i].style; F.top=y[i] + ClockHeight*Math.sin(-1.0471 + i*Split*Math.PI/180)+scrll; F.kiri=x[i] + Lebar Jam*Math.cos(-1.0471 + i*Split*Math.PI/180); } for (i=0; i < H.length; i++){ var HL=(ns)?document.layers['nsHours'+i]:ieHours[i].style; HL.top=y[i]+HandY+(i*HandHeight)*Matematika.sin(jam)+scrll; HL.kiri=x[i]+TanganX+(i*Lebar Tangan)*Matematika.cos(jam); } for (i=0; i < M.length; i++){ var ML=(ns)?document.layers['nsMinutes'+i]:ieMinutes[i].style; ML.top=y[i]+HandY+(i*HandHeight)*Math.sin(min)+scrll; ML.kiri=x[i]+HandX+(i*HandWidth)*Matematika.cos(min); } for (i=0; i < S.length; i++){ var SL=(ns)?document.layers['nsSeconds'+i]:ieSeconds[i].style; SL.top=y[i]+HandY+(i*HandHeight)*Math.sin(detik)+scrll; Bl.kiri=x[i]+TanganX+(i*Lebar Tangan)*Matematika.cos(dtk); } for (i=0; i < D.length; i++){ var DL=(ns)?document.layers['nsDate'+i]:ieDate[i].style; DL.top=Dy[i] + ClockHeight*1.5*Math.sin(currStep+i*Dsplit*Math.PI/180)+scrll; DL.kiri=Dx[i] + Lebar Jam*1,5*Math.cos(currStep+i*Dsplit*Math.PI/180); } currStep-=langkah; } fungsi Penundaan(){ scrll=(ns)?window.pageYOffset:0; Dy[0]=Matematika.bulat(DY[0]+=((ymouse)-DY[0])*kecepatan); Dx[0]=Matematika.bulat(DX[0]+=((xmouse)-DX[0])*kecepatan); for (i=1; i < D.length; i++){ Dy[i]=Matematika.bulat(DY[i]+=(Dy[i-1]-DY[i])*kecepatan); Dx[i]=Matematika.bulat(DX[i]+=(Dx[i-1]-DX[i])*kecepatan); } y[0]=Matematika.bulat(Y[0]+=((ymouse)-Y[0])*kecepatan); x[0]=Matematika.bulat(X[0]+=((xmouse)-X[0])*kecepatan); for (i=1; i < n; i++){ y[i]=Matematika.bulat(Y[i]+=(y[i-1]-Y[i])*kecepatan); x[i]=Matematika.bulat(X[i]+=(x[i-1]-X[i])*kecepatan); } JamDanTugas(); setTimeout('Penundaan()',10); } if (ns||ie)window.onload=Penundaan; </SKRIP>