Indonesia
<!-- 把如下代码加入<body>区域中 --> <!-- http://www.downcodes.com/js --> <!-- bbs http://bbs.downcodes.com -- > 看看效果怎么样啊:<br> <script Language="javascript"> <!-- Begin fCol = '000000'; //warna wajah. sKol = 'ff0000'; //warna detik. mKol = '000000'; //menit warna. hKol = '000000'; //warna jam. H = '....'; H = H.split(''); M = '.....'; M = M.split(''); S = '......'; S = S.split(''); Ypos = 0; Xpos = 0; Basis Y = 8; Xbase = 8; titik = 12; ns = (dokumen.lapisan)?1:0; if (ns) { dgts = '1 2 3 4 5 6 7 8 9 10 11 12'; dgts = dgts.split(' '); for (i = 0; i < titik; i++) { document.write('<nama lapisan=nsDigits'+i+' top=0 kiri=0 tinggi=30 lebar=30><center><font face=Arial,Verdana ukuran=1 color='+fCol+'>'+dgts[i]+'</font></center></layer>'); } untuk (i = 0; i < M.length; i++) { document.write('<nama lapisan=ny'+i+' top=0 kiri=0 bgcolor='+mCol+' clip="0,0,2 ,2"></lapisan>'); } untuk (i = 0; i < H.length; i++) { document.write('<nama lapisan=nz'+i+' top=0 kiri=0 bgcolor='+hCol+' clip="0,0,2 ,2"></lapisan>'); } untuk (i = 0; i < S.length; i++) { document.write('<nama lapisan=nx'+i+' top=0 kiri=0 bgcolor='+sCol+' clip="0,0,2 ,2"></lapisan>'); } } else { document.write('<div style="position:absolute;top:0px;left:0px"><div style="position:relative">'); for (i = 1; i < titik+1; i++) { document.write('<div id="ieDigits" style="position:absolute;top:0px;left:0px;width:30px;height:30px; font-family:Arial,Verdana;ukuran font:10px;warna:'+fCol+';text-align:center;padding-top:10px">'+i+'</div>'); } dokumen.tulis('</div></div>') dokumen.tulis('<div style="position:absolute;top:0px;left:0px"><div style="position:relative">' ); for (i = 0; i < M.length; i++) { document.write('<div id=y style="position:absolute;width:2px;height:2px;font-size:2px;background:'+ mKol+'"></div>'); } dokumen.tulis('</div></div>') dokumen.tulis('</div></div>') dokumen.tulis('<div style="position:absolute;top:0px;left :0px"><div style="position:relative">'); for (i = 0; i < H.length; i++) { document.write('<div id=z style="position:absolute;width:2px;height:2px;font-size:2px;background:'+ hKol+'"></div>'); } dokumen.tulis('</div></div>') dokumen.tulis('<div style="position:absolute;top:0px;left:0px"><div style="position:relative">' ); for (i = 0; i < S.length; i++) { document.write('<div id=x style="position:absolute;width:2px;height:2px;font-size:2px;background:'+ sKol+'"></div>'); } document.write('</div></div>') } fungsi jam() { 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,57 + Math.PI * jam/6 + Math.PI*parseInt(time.getMinutes())/360; if (ns) { Ypos = window.pageYOffset+window.innerHeight-60; Xpos = window.pageXOffset+window.innerWidth-80; } else { Ypos = document.body.scrollTop + window.document.body.clientHeight - 60; Xpos = document.body.scrollLeft + window.document.body.clientWidth - 60; } if (ns) { untuk (i = 0; i < titik; ++i){ document.layers["nsDigits"+i].top = Ypos - 5 + 40 * Math.sin(-0,49+titik+i /1.9); document.layers["nsDigits"+i].left = Xpos - 15 + 40 * Math.cos(-0.49+dots+i/1.9); } for (i = 0; i < S.length; i++){ document.layers["nx"+i].top = Ypos + i * Ybase * Math.sin(detik); document.layers["nx"+i].left = Xpos + i * Xbase * Math.cos(detik); } for (i = 0; i < M.length; i++){ document.layers["ny"+i].top = Ypos + i * Ybase * Math.sin(min); document.layers["ny"+i].left = Xpos + i * Xbase * Math.cos(min); } for (i = 0; i < H.length; i++){ document.layers["nz"+i].top = Ypos + i * Ybase * Math.sin(hrs); document.layers["nz"+i].left = Xpos + i * Xbase * Math.cos(jam); } } else{ for (i=0; i < titik; ++i){ ieDigits[i].style.pixelTop = Ypos - 15 + 40 * Math.sin(-0.49+dots+i/1.9); ieDigits[i].style.pixelLeft = Xpos - 14 + 40 * Math.cos(-0.49+titik+i/1.9); } for (i=0; i < S.length; i++){ x[i].style.pixelTop = Ypos + i * Ybase * Math.sin(detik); x[i].style.pixelLeft = Xpos + i * Xbase * Math.cos(detik); } for (i=0; i < M.length; i++){ y[i].style.pixelTop = Ypos + i * Ybase * Math.sin(min); y[i].style.pixelLeft = Xpos + i * Xbase * Math.cos(min); } for (i=0; i < H.length; i++){ z[i].style.pixelTop = Ypos + i * Ybase*Math.sin(hrs); z[i].style.pixelLeft = Xpos + i * Xbase*Math.cos(jam); } } setTimeout('jam()', 50); } if (document.layers || document.all) window.onload = jam; // Selesai --> </skrip>