تغيير لون الصفحة بضطة زر
- الكود:
<SCRIPT LANGUAGE="JavaScript">
/* Visit our site at [url=http://www.star28.com/]http://www.star28.com/[/url] for more code
This notice must stay intact for use */
<!-- Begin
function rnd(scale) {
var dd=new Date();
return((Math.round(Math.abs(Math.sin(dd.getTime()))*1000000000)%scale));
}
function show() {
document.blah.bg.value=document.bgColor;
document.blah.fg.value=document.fgColor;
}
document.fgColor=256*rnd(255)+16*rnd(255)+rnd(255);
document.bgColor=256*rnd(255)+16*rnd(255)+rnd(255);
// End -->
</SCRIPT>