»
EnglishFrenchVietnamese

Print - Random background-image - JavaScriptBank.com

Full version: jsB@nk » Background » Random background-image
URL: https://www.javascriptbank.com/random-background-image.html

Random background-image © JavaScriptBank.comThis JavaScript will set a random image in defined list for background after everytime the page was loaded.

Full version: jsB@nk » Background » Random background-image
URL: https://www.javascriptbank.com/random-background-image.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*/var backgr1="../image/logojs.gif"var backgr2="../image/photo3.jpg"var backgr3="../image/pic191.jpg"var cur=Math.round(6*Math.random())if (cur<=1)backgr=backgr1else if (cur<=4)backgr=backgr2elsebackgr=backgr3document.write('<body background="'+backgr+'" bgcolor="#ffe4c4" text="#000000" link="#0000FF" vlink="#800080" alink="#FF0000">')</SCRIPT><!--    This script downloaded from www.JavaScriptBank.com    Come to view and download over 2000+ free javascript at www.JavaScriptBank.com-->