Indonesia
<!-- http://www.downcodes.com --> <!-- bbs http://www.downcodes.com/bbs--> <!--第一步:把如下代码加入<head>区域中--> <script bahasa="Javascript"> <!-- function backcolor(form){ temp = "" for (var i = 0; i < 16; i++) { temp = form.color[i]. nilai if (form.color[i].checked){ document.bgColor = temp } } } function randombackground(){ document.bgColor = getColor() } function getColor(){ currentdate = new Date() backgroundcolor = currentdate.getSeconds () if (backgroundcolor > 44) backgroundcolor = backgroundcolor - 45 else if (backgroundcolor > 29) backgroundcolor = backgroundcolor - 30 else if (backgroundcolor > 15) backgroundcolor = backgroundcolor - 16 if (backgroundcolor == 0 ) kembalikan "zaitun"; lain jika (warna latar == 1 ) kembalikan "teal"; lain jika (warna latar == 2 ) kembalikan "merah"; else if (backgroundcolor == 3 ) mengembalikan "biru"; else if (backgroundcolor == 4 ) kembalikan "maroon"; else if (backgroundcolor == 5 ) kembalikan "navy"; else if (backgroundcolor == 6 ) kembalikan "kapur"; lain jika (warna latar == 7 ) kembalikan "fuschia"; lain jika (warna latar == 8 ) kembalikan "hijau"; else if (backgroundcolor == 9 ) mengembalikan "ungu"; else if (backgroundcolor == 10 ) mengembalikan "abu-abu"; else if (backgroundcolor == 11 ) mengembalikan "kuning"; lain jika (warna latar == 12 ) kembalikan "aqua"; else if (backgroundcolor == 13 ) mengembalikan "hitam"; else if (backgroundcolor == 14 ) mengembalikan "putih"; else if (backgroundcolor == 15 ) mengembalikan "perak"; } // --> </script> <!--第二步:把如下代码加入<body>区域中--> <FORM> <input type="button" value="Random" onClick="randombackground( )"> </bentuk>