کد
<!--***********|www.gpgtools.blogsky.com|*********** --> <!-- Start Of Fading Background Script --> <!-- Instructions: Just put this script on your webpage and the background color will change with a display of what the current hex code is. --> <!-- Script supplied with CoffeeCup HTML Editor --> <!-- www.coffeecup.com --> <SCRIPT Language = "JavaScript"> start = new Date(); minstart = start.getMinutes() secstart = start.getSeconds() function brighter(){ var now = new Date(); var seconds = now.getSeconds(); var minutes = now.getMinutes(); var base = "00"; var color = 1000; var interval = 103; var sec= interval * (seconds - secstart); var min= 60 * interval * (minutes - minstart); var add= color + min + sec; total= base + add; if (add>=9999) {secstart = seconds; minstart = minutes} document.bgColor = total; setTimeout("brighter()", 1000); document.coffeeform.cc.value = total; } </script> </HEAD> <body onLoad = "brighter()" text="white" LINK="C0C0C0" VLINK="C0C0C0"> <form name="coffeeform"> <P> color # <input name = "cc" type="text" size="7"> </form> <!--***************| www.gpgir.org|************** -->