The reason for this is because I can easily find quote or link of the day scripts that set a max of 1 month (31 days). What I'm trying to do is set up a Daily Reading section for my website so people can read through the Bible in a year. So, I need a link of the day script that will allow 365 entries (365 days in a year). It must not be random, it needs to be 1-1 is page jan1.html 1-2 is page jan2.html etc, etc....
Can anyone tell me where to find such a script, I know I saw one years ago, but can't remember where, or if anyone would be kind enough to build me one it would be greatly apprecieated. I cannot pay anything at this time, but it would be an option if you gave me some time and were not expensive.
Thank You,
Johnie Karr,
The Lord's Servant
The Online Bible
http://www.godsbible.org
requestcode
10-07-2003, 01:51 PM
Here is one that I wrote a couple of years ago:
<html>
<head>
<title>Link of the Day</title>
</head>
<body>
<table align="center" border="0" width="300" height="100" cellspacing="0" cellpadding="0">
<tr align="center" valign="top">
<td align="center" valign="top">
<script>
/*
Enter the 366 urls and names below you wish to go to for each day of the year. DO NOT use commas
in the name or the script will not work.
*/
var daylinks=new Array()
daylinks[1]="http://www.cnn.com,CNN"
daylinks[2]="http://www.abcnews.com,ABCNews"
daylinks[3]="http://www.cnet.com,ABC"
daylinks[4]="http://www.geocities.com,Geocities"
daylinks[5]="http://www.lycos.com,Lycos"
daylinks[6]="http://www.infoseek.com,Infoseek"
daylinks[7]="http://www.hotbot.com,Hotbot"
daylinks[8]="http://www.tripod.com,Tripod"
daylinks[9]="http://www.wsabstract.com,Website Abstraction"
daylinks[10]="http://www.wired.com,Wired"
*** More Links here for each day of the year ***
daylinks[364]="http://www.hotwired.com,Hotwired.com"
daylinks[365]="http://www.requestcode.com,Request Code"
daylinks[366]="http://www.dynamicdrive.com,Dynamic Drive"
var numdays=0
var daysa=new Array(31,28,31,30,31,30,31,31,30,31,30,31)
var daysb=new Array(31,29,31,30,31,30,31,31,30,31,30,31) // for leap year
var tdate=new Date()
var tmonth=tdate.getMonth()
var tyear=tdate.getFullYear()
var tdays=tdate.getDate()
remain=tyear % 4
if(remain!=0) // if not leap year
{
for(x=0;x<tmonth;x++)
{
numdays=numdays+daysa[x]
}
}
else // if leap year
{
for(x=0;x<tmonth;x++)
{
numdays=numdays+daysb[x]
}
}
today=numdays+tdays
ranlink=daylinks[today].split(",") // separate the address and name
document.write("The featured link for today is: <a href='"+ranlink[0]+"' title='"+ranlink[1]+"' target='_new'>"+ranlink[1]+"</a>")
document.close()
</script>
</td>
</tr>
</table>
</body>
</html>
var quotes = ['I am the LORD your God, who brought you out of the land of Egypt, out of the house of slavery; you shall have no other gods before me.', 'You shall not make for yourself an idol, whether in the form of anything that is in heaven above, or that is on the earth beneath, or that is in the water under the earth. You shall not bow down to them or worship them; for I the LORD your God am a jealous God, punishing children for the iniquity of parents, to the third and the fourth generation of those who reject me, but showing steadfast love to the thousandth generation of those who love me and keep my commandments. ', 'You shall not make wrongful use of the name of the LORD your God, for the LORD will not acquit anyone who misuses his name.', 'Remember the sabbath day, and keep it holy. Six days you shall labor and do all your work. But the seventh day is a sabbath to the LORD your God; you shall not do any work - you, your son or your daughter, your male or female slave, your livestock, or the alien resident in your towns. For in six days the LORD made heaven and earth, the sea, and all that is in them, but rested the seventh day; therefore the LORD blessed the sabbath day and consecrated it.', 'Honor your father and your mother, so that your days may be long in the land that the LORD your God is giving you.', 'You shall not murder.', 'You shall not commit adultery.', 'You shall not steal.', 'You shall not bear false witness against your neighbor.', 'You shall not covet your neighbor’s house; you shall not covet your neighbor’s wife, or male or female slave, or ox, or donkey, or anything that belongs to your neighbor.'];