Custom Search

capcha

captcha berwarna
function cap()
{
var a="abcdefghijklmnopqrstuvwxyz1234567890";
var warna= new Array("red","blue","green","yellow")

document.getElementById("satu").innerHTML= a[Math.floor(Math.random()*35)];
document.getElementById("dua").innerHTML= a[Math.floor(Math.random()*35)];
document.getElementById("tiga").innerHTML= a[Math.floor(Math.random()*35)];
document.getElementById("empat").innerHTML= a[Math.floor(Math.random()*35)];
document.getElementById("lima").innerHTML= a[Math.floor(Math.random()*35)];

document.getElementById("satu").style.backgroundColor=warna

[Math.floor(Math.random()*4)];
document.getElementById("dua").style.backgroundColor=warna
[Math.floor(Math.random()*4)];
document.getElementById("tiga").style.backgroundColor=warna
[Math.floor(Math.random()*4)];
document.getElementById("empat").style.backgroundColor=warna
[Math.floor(Math.random()*4)];
document.getElementById("lima").style.backgroundColor=warna
[Math.floor(Math.random()*4)];




}
/script
/head

body onload="cap();"
span id="satu" name="satu"
span id="dua" name="dua"
span id="tiga" name="tiga"
span id="empat" name="empat"
span id="lima" name="lima"