Different HTML page for a different date.

Ask a Question related to Dreamweaver AppDev, Design and Development.

  1. #1

    Default Different HTML page for a different date.

    I have 12 html pages, one page for each month, only one page can be actively
    selected from the menu each month. How can you change the HTML file name to be
    selected by the machine clock so that Jan.html displays in January, Feb.html in
    February etc....

    Zed Base Guest

  2. Similar Questions and Discussions

    1. Flash .html Plays on Server but NOT on html page
      Sorry for being so green. Running IIS Microsoft Server 1. Installed FMS 2. Installed Player 8 and 9 Uploaded .flv and .swf files to server....
    2. How to update html page from another html page
      I have developed one Real estate site for my client, now my client wants to update the CurrentOffers.html page himselves, where in he wants to...
    3. how to jump from html page to html page
      Good Evening, I would like to know the way to jump from webpage to webpage, without the user pressing anything. For example, if the user...
    4. including html files in a .html page
      4bb: Investigate Server-side includes. If your host supports them, they do just what you want. Be aware that the file included MUST BE AN...
    5. Calling a html page from an asp page then returning to the next statement on the original asp page
      Hi! I have an ASP page that calls excel to create a report. This works fine. Now I need to call a html calendar page to filter what rows are...
  3. #2

    Default Re: Different HTML page for a different date.

    client or server-side?

    JS client-side (not tested!):

    <SCRIPT>
    monthArray = new Array("Jan", "Feb", ...);

    function gotoPage() {
    myDate = new Date();
    pageName = monthArray[myDate.getMonth()] + ".html";
    location.href = pageName;
    }
    </SCRIPT>

    don't know what kind of menu you're using but if it's a simple link:

    <A href="JavaScript:gotoPage();">....</A>

    HTH,

    manuel


    Zed Base wrote:
    > I have 12 html pages, one page for each month, only one page can be actively
    > selected from the menu each month. How can you change the HTML file name to be
    > selected by the machine clock so that Jan.html displays in January, Feb.html in
    > February etc....
    >
    Manuel Socarras Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139