Background Ganti Warna

Line Break
Penulis: Admin (252 Articles)
Admin
Memberikan pembelajaran kepada Anda seputar Web Development, Desain Grafis, dll, secara gratis. Berawal dari hoby sharing akan ilmu web development di tahun 2007 oleh 2 mahasiswa.
Contact:
Homepage : http://www.ilmuwebsite.com
Ingin menjadi penulis artikel di ilmuwebsite? Klik >> Daftar

Background Ganti Warna javascript web desain grafis<html>
<head>
<title></title>
</head>

<SCRIPT LANGUAGE=”JavaScript”>

<!– Begin
var pos = 10;
function initArray() {
this.length = initArray.arguments.length;
for (var i = 0; i < this.length; i++) {
this[i] = initArray.arguments[i];
   }
}
var col=new initArray(“4b”,”5b”,”8b”,”8b”;);
function stop() {
document.bgColor = ‘#FFFFFF’;
clearTimeout(loopID);
}
function start() {
col[1]=”red”
col[2]=”yellowgreen”
col[3]=”yellow”
col[4]=”whitesmoke”
col[5]=”white”
col[6]=”wheat”
col[7]=”violet”
col[8]=”turquoise”
col[9]=”tomato”
col[10]=”thistle”
pos++;
if (pos<0||pos>10) {
pos = 0;
}
document.bgColor = col[pos];
loopID = setTimeout(“start()”,50);
}
// End –>
</SCRIPT>

<!– STEP TWO: Add the onLoad event handler to the BODY tag  –>

<p align=”center”> </p>

<BODY onLoad=”start()”>

</body>
</html>


Cari artikel lain :

Background Ganti Warna javascript web desain grafis

Background Ganti Warna javascript web desain grafis



Punya pertanyaan? Mari kita bahas di forum ilmuwebsite

Comments are closed.

eXTReMe Tracker