37 users online (1 members and 36 guests)  

Thread: page per month


  Results 1 to 4 of 4

Related

  1. Replies: 2
  1. #1
    computerfan1's Avatar
    New User

    Status
    Offline
    Join Date
    Apr 2002
    Location
    Oregon
    Posts
    14

    page per month

    Does anyone no of a script that will display a different page depending on the month?
    Thanks for the help.

  2. #2
    Mikailus's Avatar
    Ugly Geezer

    Status
    Offline
    Join Date
    Mar 2002
    Location
    Florida
    Posts
    135
    http://www.a1javascripts.com/redirection_scripts/redirectonday/saturday.html which redirects according to day of the week. Search the web for free javascript/cgi script sites....

  3. #3
    computerfan1's Avatar
    New User

    Status
    Offline
    Join Date
    Apr 2002
    Location
    Oregon
    Posts
    14
    Thanks but that wasn't exactly what I was after. I am trying to make a website for my church that has the monthly church calender on it so a daily change wouldn't help much.

  4. #4
    Doorknob's Avatar
    Super Newbie

    Status
    Offline
    Join Date
    Jun 2002
    Location
    Malaysia
    Posts
    316
    hope this helps.

    TWO STEPS TO INSTALL MONTH PAGE:

    1. Copy the coding into the HEAD of your HTML document
    2. Add the onLoad event handler into the BODY tag

    <!-- STEP ONE: Paste this code into the HEAD of your HTML document -->

    <HEAD>

    <SCRIPT LANGUAGE="JavaScript">

    <!-- This script and many more are available free online at -->
    <!-- The JavaScript Source!! http://javascript.internet.com -->

    <!-- Begin
    function monthPage() {
    today = new Date();
    m = new Array(
    "January.html","February.html",
    "March.html","April.html","May.html",
    "June.html","July.html","August.html",
    "September.html","October.html",
    "November.html","December.html"
    );
    window.location = m[today.getMonth()];
    }
    // End -->
    </script>

    <!-- STEP TWO: Insert the onLoad event handler into your BODY tag -->

    <BODY OnLoad="monthPage()">

    <p><center>
    <font face="arial, helvetica" size="-2">Free JavaScripts provided<br>
    by <a href="http://javascriptsource.com">The JavaScript Source</a></font>
    </center><p>

    <!-- Script Size: 0.85 KB -->
    Last edited by HTML; 12-10-2002 at 09:47 AM.



Tags for this Thread