New Window Every Day Scripts

 

Every Hour For a Day
Every Day for a Week
Every Day For a Month
Every Month For a Year
Every Day For a Year*

Note: The scripts below will display the content in a new window. If you wish to have the content displayed using the same window remove: target='new' from the inline javascripts.


hourly for day... copy and paste

<script language="javascript"><!--

/* Script created by Joseph Raymond... javascripts like this can be found at his web site... http://www.christianmuse.com/ */

/* This script displays a different page every hour for a day. It will require 24 files.
To set it up you need to:

  1. Place this script on the page where the link will appear.
  2. Create a folder named h4d in the same directory as the page containing the link.
  3. In folder h4d, create enough html pages to give each hour its own page. Number them 0 - 23. Such as "0.htm". Which is 12:00 AM.
  4. Upload everything to your server.
*/

/* Here is the meat of the script. Change Title to what you want. Do not use special characters. Letters and numbers only... */

RightNow = new Date();document.write("<a target='new' href='h4d/" +RightNow.getHours()+ ".htm'>Title</a>")

/*Make sure the above line is not word wrapped. The entire line must be on one line.*/

// --></script>

Back to Top


daily for week... copy and paste

<script language="javascript"><!--

/* Script created by Joseph Raymond... javascripts like this can be found at his web site... http://www.christianmuse.com/ */

/* This script displays a different page every day of the week. It will require 7 files.
To set it up you need to:

  1. Place this script on the page where the link will appear.
  2. Create a folder named d4w in the same directory as the page containing the link.
  3. In folder d4w, create enough html pages to give each day its own page. Number them 0 - 6. Such as "0.htm", which is Sunday.
  4. Upload everything to your server.
*/

/* Here is the meat of the script. Change Title to what you want. Do not use special characters. Letters and numbers only... */

RightNow = new Date();document.write("<a target='new' href='d4w/" +RightNow.getDay()+ ".htm'>Title</a>")

/*Make sure the above line is not word wrapped. The entire line must be on one line.*/

// --></script>

Back to Top


daily for month... copy and paste

<script language="javascript"><!--

/* Script created by Joseph Raymond... javascripts like this can be found at his web site... http://www.christianmuse.com/ */

/* This script displays a different page every day for a month. It will require 31 files.
To set it up you need to:

  1. Place this script on the page where the link will appear.
  2. Create a folder named d4m in the same directory as the page containing the link.
  3. In folder d4m, create enough html pages to give each day its own page. Number them 1 - 31. Such as "1.htm".
  4. Upload everything to your server.
*/

/* Here is the meat of the script. Change Title to what you want. Do not use special characters. Letters and numbers only... */

RightNow = new Date();document.write("<a target='new' href='d4m/" +RightNow.getDate()+ ".htm'>Title</a>")

/*Make sure the above line is not word wrapped. The entire line must be on one line.*/

// --></script>

Back to Top


monthly for year... copy and paste

<script language="javascript"><!--

/* Script created by Joseph Raymond... javascripts like this can be found at his web site... http://www.christianmuse.com/ */

/* This script displays a different page every month for a year. It will require 12 files.
To set it up you need to:

  1. Place this script on the page where the link will appear.
  2. Create a folder named m4y in the same directory as the page containing the link.
  3. In folder m4y, create enough html pages to give each month its own page. Number them 0 - 11. Such as "0.htm", which is January.
  4. Upload everything to your server.
*/

/* Here is the meat of the script. Change Title to what you want. Do not use special characters. Letters and numbers only... */

RightNow = new Date();document.write("<a target='new' href='m4y/" +RightNow.getMonth()+ ".htm'>Title</a>")

/*Make sure the above line is not word wrapped. The entire line must be on one line.*/

// --></script>

Back to Top


daily for year... copy and paste

<script language="javascript"><!--

/* Script created by Joseph Raymond... javascripts like this can be found at his web site... http://www.christianmuse.com/ */

/* This is the longest one to set up. It displays a different page every day of the year. It will require 366 files.
To set it up you need to:

  1. Place this script on the page where the link will appear.
  2. Create a folder named d4y in the same directory as the page containing the link.
  3. In the folder named d4y, create 12 more folders and number them 0 - 11.
  4. In folder 0 create enough html pages to give each day its own page. Number them 1 - 31. Such as "1.htm". This folder is for January.
  5. Repeat the process for folders 1 - 11. 1 is February & 11 is December. *remember... february has a an extra day at leap year.
  6. Upload everything to your server.

A working example of this setup can be found on my homepage. see Daily Reading. */

/* Here is the meat of the script. Change Title to what you want. Do not use special characters. Letters and numbers only... */

RightNow = new Date();document.write("<a target='new' href='d4y/" +RightNow.getMonth()+ "/" +RightNow.getDate()+ ".htm'>Title</a>")

/*Make sure the above line is not word wrapped. The entire line must be on one line.*/

// --></script>

Back to Top


Hope that this helps you...

Author: Joseph Raymond

12th of December, 2000