Search this site!

Return to the CSB Support home page
Quote of the Day
Description:
This javascript will display a different quote for each day of the month.  I like it since it is self contained, and requires no other files
How to use:
1. Simply cut and paste the code provided, and insert it into your web page using Insert HTML/BYOWG

2. Edit each of the daily messages

3. Publish and enjoy!
Example:
Download the code
right click on link, then click on 'Save target (or frame) as'
Other information:

Source code:

<script>
<!--
/* This script is a modification of a free script
from Website Abstraction (http://wsabstract.com)
with over 400+ free scripts
*/

var dailyinfo=new Array()

//Define one message for each day of the month.

dailyinfo[1]="this is message 1"
dailyinfo[2]="this is message 2"
dailyinfo[3]="this is message 3"
dailyinfo[4]="this is message 4"
dailyinfo[5]="this is message 5"
dailyinfo[6]="this is message 6"
dailyinfo[7]="this is message 7"
dailyinfo[8]="this is message 8"
dailyinfo[9]="this is message 9"
dailyinfo[10]="this is message 10"
dailyinfo[11]="this is message 11"
dailyinfo[12]="this is message 12"
dailyinfo[13]="this is message 13"
dailyinfo[14]="this is message 14"
dailyinfo[15]="this is message 15"
dailyinfo[16]="this is message 16"
dailyinfo[17]="this is message 17"
dailyinfo[18]="this is message 18"
dailyinfo[19]="this is message 19"
dailyinfo[20]="this is message 20"
dailyinfo[21]="this is message 21"
dailyinfo[22]="this is message 22"
dailyinfo[23]="this is message 23"
dailyinfo[24]="this is message 24"
dailyinfo[25]="this is message 25"
dailyinfo[26]="this is message 26"
dailyinfo[27]="this is message 27"
dailyinfo[28]="this is message 28"
dailyinfo[29]="this is message 29"
dailyinfo[30]="this is message 30"
dailyinfo[31]="this is message 31"

//Get todays date
var mydate=new Date()
var year=mydate.getYear()
var month=mydate.getMonth()+1
var daym=mydate.getDate()

document.write("Daily message for " + month + "/" + daym + "/" + year + ":<br>")
document.write("<br><B><I>"+dailyinfo[daym]+"</B></I>")
//-->
</script>