finally found a script to realize random quotes easily, even on your site!
This script will show one quote per day.
How to:
1. First, create a *.js File calles "quote.js", containing the following code:
Code: Select all
now = new Date
Day = new Array
//Edit the Quotes below
Day[1] = "Quote Day 1"
Day[2] = "Quote Day 2"
Day[3] = "Quote Day 3"
Day[4] = "Quote Day 4."
Day[5] = "Quote Day 5"
Day[6] = "Quote Day 6"
Day[7] = "Quote Day 7"
Day[8] = "Quote Day 8"
Day[9] = "Quote Day 9"
Day[10] = "Quote Day 10"
Day[11] = "Quote Day 11"
Day[12] = "Quote Day 12"
Day[13] = "Quote Day 13"
Day[14] = "Quote Day 14"
Day[15] = "Quote Day 15"
Day[16] = "Quote Day 16"
Day[17] = "Quote Day 17"
Day[18] = "Quote Day 18"
Day[19] = "Quote Day 19"
Day[20] = "Quote Day 20"
Day[21] = "Quote Day 21"
Day[22] = "Quote Day 22"
Day[23] = "Quote Day 23"
Day[24] = "Quote Day 24"
Day[25] = "Quote Day 25"
Day[26] = "Quote Day 26"
Day[27] = "Quote Day 27"
Day[28] = "Quote Day 28"
Day[29] = "Quote Day 29"
Day[30] = "Quote Day 30"
Day[31] = "Quote Day 31"
document.write("<Font color=#000000>")
document.write("<Font size=2>")
document.write("<center><i>"" + Day[now.getDate()] + ""</i></center>")
document.write("</Font>")
document.write("</Font>")
3. Finally, insert this tag into a content part or your template (as you wish) an it will be shown on your site:
Code: Select all
<script src="quote.js"></script>
Simple, isn't it?!?
I'd appreciate if someone aould modify the script to show a new quote on every reload, or a shorter time than daily. As you indubitably see, I'm not to confident wirh coding...
Many greetings,
FELIX