Demo :
Setiap page dimuat ulang, background akan berganti warna.
Cara membuatnya
Penempatannya
dibawah <body>
........
diatas </body>
<script type='text/javascript'>
//<![CDATA[
/* by JavaScript Kit (http://www.javascriptkit.com/script/script2/randombgcolor.shtml)*/
//Tempat warna background:
var bgcolorlist=new Array("#222222", "#FFFFBF", "#80FF80", "#EAEAFF", "#C9FFA8", "#F7F7F7", "#FFFFFF", "#DDDD00")
document.body.style.background=bgcolorlist[Math.floor(Math.random()*bgcolorlist.length)]
//]]>
</script>
Credit : JavaScript Kit
Alhamdulillah
1 comments:
makasih kk
Posting Komentar