»
EnglishFrenchVietnamese

Print - Random background color on reload - JavaScriptBank.com

Full version: jsB@nk » Background » Random background color on reload
URL: http://www.javascriptbank.com/random-background-color-onreload.html

Random background color on reload © JavaScriptBank.comGet a random background color when visitors enter/load the web page.

Full version: jsB@nk » Background » Random background color on reload
URL: http://www.javascriptbank.com/random-background-color-onreload.html



JavaScript
<script>/*Random background color*///Enter list of bgcolors:var bgcolorlist=new Array("#DFDFFF", "#FFFFBF", "#80FF80", "#EAEAFF", "#C9FFA8", "#F7F7F7", "#FFFFFF", "#DDDD00")document.bgColor=bgcolorlist[Math.floor(Math.random()*bgcolorlist.length)]</script><!--    This script downloaded from www.JavaScriptBank.com    Come to view and download over 2000+ free javascript at www.JavaScriptBank.com-->