»
EnglishFrenchVietnamese

Print - Background color changer - JavaScriptBank.com

Full version: jsB@nk » Background » Background color changer
URL: http://www.javascriptbank.com/background-color-changer-input.html

Background color changer © JavaScriptBank.comThe effect makes color background continually change by increasing HEX color code.

Full version: jsB@nk » Background » Background color changer
URL: http://www.javascriptbank.com/background-color-changer-input.html



JavaScript
<SCRIPT language=JavaScript> /*     This script downloaded from www.JavaScriptBank.com     Come to view and download over 2000+ free javascript at www.JavaScriptBank.com*/    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";//       if you want to change the starting color, add the starting code here//       instead of aa (two digits, only numbers and/or a, b, c, d, e, f).    var color =  1000;    var interval = 103;//       if you want to change the speed of the color-change, //       change the 103 to the number of hex-codes you want between two changes.//       not every number gives a nice result!    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.myform.ikke.value = total;                       }</SCRIPT><!--    This script downloaded from www.JavaScriptBank.com    Come to view and download over 2000+ free javascript at www.JavaScriptBank.com-->


HTML
<body onload=brighter()></body><!--    This script downloaded from www.JavaScriptBank.com    Come to view and download over 2000+ free javascript at www.JavaScriptBank.com-->