»
EnglishFrenchVietnamese

Print - Random color onLoad - JavaScriptBank.com

Full version: jsB@nk » Background » Random color onLoad
URL: http://www.javascriptbank.com/random-color-onload.html

Random color onLoad © JavaScriptBank.comEvery times a visitor comes to a page with this JavaScript in effect, they get a different foreground and background color. However, occassionally you do get a background and foreground color that makes your text unreadable.

Full version: jsB@nk » Background » Random color onLoad
URL: http://www.javascriptbank.com/random-color-onload.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*/<!--Hide from older browsers var0="red";   var1="blue";   var2="white"; var3="green"; var4="yellow"; var5="purple";  var6="orange"; now=new Date()  num=(now.getSeconds() )%7if (num == 0)       {cliche=var0}  if (num == 1)      {cliche=var1} if (num == 2)       {cliche=var2}  if (num == 3)       {cliche=var3}if (num == 4)       {cliche=var4}if (num == 5)      {cliche=var5}if (num == 6)       {cliche=var6}document.bgColor=(cliche)//--></SCRIPT><SCRIPT language=JavaScript><!--Hide from older browsersif (1 == 1) {var Fonts = 8 /* Amount of Different Fonts */var RanNu = Math.ceil(Math.random() * Fonts);}if (RanNu == 1) {document.write("");}if (RanNu == 2) {document.write("");}if (RanNu == 3) {document.write("");}if (RanNu == 4) {document.write("");}if (RanNu == 5) {document.write("");}if (RanNu == 6) {document.write("<STRONG>");}if (RanNu == 7) {document.write("");}if (RanNu == 8) {document.write("");}//--></SCRIPT><!--    This script downloaded from www.JavaScriptBank.com    Come to view and download over 2000+ free javascript at www.JavaScriptBank.com-->