Indonesia
<!-- http://www.downcodes.com --> <!-- bbs http://www.downcodes.com/bbs--> <!--把如下代码加入到<body>区域中- -> <script bahasa="JavaScript"> <!-- Menyembunyikan var red=0; var hijau=0; var biru=0; nilai var=0; var convert = Array baru() var hexbase= Array baru("0", "1", "2", "3", "4", "5", "6", "7", "8", " 9", "A", "B", "C", "D", "E", "F"); untuk (x=0; x<16; x++){ untuk (y=0; y<16; y++){ convert[nilai]= hexbase[x] + hexbase[y]; nilai++; } } fungsi jelas(){ document.color.bl.value= biru; document.color.rd.value= merah; document.color.gr.value= hijau; } fungsi tampilan(){ redx = konversi[merah] greenx = konversi[hijau] bluex = konversi[biru] var rgb = "#"+redx+greenx+bluex; document.color.rgbdspl.value= rgb; dokumen.bgColor =rgb; } fungsi naik(x){ if ((merah+x)<=255) merah+=x dokumen.warna.rd.nilai= merah; display() } function downred(x){ if ((red-x)>=0) merah-=x document.color.rd.value= merah; tampilan() } fungsi upgreen(x){ if ((hijau+x)<=255) hijau+=x document.color.gr.value= hijau; display() } function downgreen(x){ if ((green-x)>=0) hijau-=x document.color.gr.value= hijau; display() } function upblue(x){ if ((biru+x)<=255) biru+=x document.color.bl.value= biru; display() } function downblue(x){ if ((blue-x)>=0) biru-=x document.color.bl.value= biru; display() } // selesai bersembunyi --> </script> <form name="color"> <table align="center"> <tr align="Center"> <td width="52"> <nama masukan ="merah" type="button" value=" +50 " onClick="upred(50)"> </td> <td width="58"> <input name="red2" type="button" value= " + 10 " onClick="upred(10)"> </td> <td width="46"> <input name="red2" type="button" value=" + 1" onClick="upred(1) "> </td> <td width="52"><font color="#FF0000" size=+3><b><font color="#FA0000" face="楷体_GB2312">红</font ></b></font></td> <td width="46"> <input name="red-" type="button" value=" - 1" onClick="downred(1)"> < /td> <td width="58"> <input name="red-" type="button" value=" - 10 " onClick="downred(10)"> </td> <td width="52" > <input nama="merah-" type="button" value=" -50 " onClick="downred(50)"> </td> <td width="29"> <input type="text" nama= "rd" size=3> </td> </tr> <tr align="Center"> <td width="52"> <input name="green" type="button" value=" +50 " onClick ="upgreen(50)"> </td> <td width="58"> <input name="green" type="button" value=" + 10 " onClick="upgreen(10)"> </td > <td width="46"> <input name="green" type="button" value=" + 1" onClick="upgreen(1)"> </td> <td width="52"><font color="#00FF00" size=+3><b><font color="#00FA00" face="楷体_GB2312">绿</font></b></font></td> <td lebar ="46"> <input nama="hijau-" type="button" value=" - 1" onClick="downgreen(1)"> </td> <td width="58"> <input nama=" hijau-" type="button" value=" - 10 " onClick="downgreen(10)"> </td> <td width="52"> <input name="green-" type="button" value= " -50 " onClick="downgreen(50)"> </td> <td width="29"> <input type="text" name="gr" size=3> </td> </tr> < tr align="Center"> <td width="52"> <input name="blue" type="button" value=" +50 " onClick="upblue(50)"> </td> <td width= "58"> <input nama="biru" type="button" value=" + 10 " onClick="upblue(10)"> </td> <td width="46"> <input nama="biru" type="button" value=" + 1" onClick="upblue(1)"> </td> <td width="52"><font color="#0000FF" size=+3><b><font color="#0000FA" face="楷体_GB2312">蓝</font></b></font></td> <td width="46"> <input name="blue-" type=" tombol" value=" - 1" onClick="downblue(1)"> </td> <td width="58"> <input name="blue-" type="button" value=" - 10 " onClick= "downblue(10)"> </td> <td width="52"> <input name="blue-" type="button" value=" -50 " onClick="downblue(50)"> </td > <td width="29"> <input type="text" name="bl" size=3> </td> </tr> <tr align="Center"> <td width="52"> < /td> <td width="58"> </td> <td width="46"> </td> <td width="52"> <input type="text" name="rgbdspl" size=7 > </td> <td lebar = "46"> </td> <td lebar = "58"> </td> <td lebar = "52"> </td> <td lebar = "29"> < /td> </tr> </tabel> <div align="center"></div> <div align="center"></div> </form>