»
EnglishFrenchVietnamese

Print - Day-of-the-week image displayer - JavaScriptBank.com

Full version: jsB@nk » Image » Day-of-the-week image displayer
URL: http://www.javascriptbank.com/day-of-the-week-image-displayer.html

Day-of-the-week image displayer © JavaScriptBank.comA script that displays a different image according to the day of the week (ie: one image for Monday, one image for Tuesday etc).

Full version: jsB@nk » Image » Day-of-the-week image displayer
URL: http://www.javascriptbank.com/day-of-the-week-image-displayer.html



JavaScript
<SCRIPT language=JavaScript><!--function dailyImage() {adImages = new Array("photo1.jpg","photo2.jpg","photo3.jpg","photo4.jpg","photo5.jpg","photo6.jpg","photo7.jpg");now = new Date();num = now.getDay();num %= adImages.length;if(document.adBanner) {document.adBanner.src=adImages[num]}} // --> </SCRIPT><!--    This script downloaded from www.JavaScriptBank.com    Come to view and download over 2000+ free javascript at www.JavaScriptBank.com-->


HTML
<BODY onload=dailyImage()><IMG alt="Ad Banner" src="logojs.gif" name=adBanner></BODY><!--    This script downloaded from www.JavaScriptBank.com    Come to view and download over 2000+ free javascript at www.JavaScriptBank.com-->