page loading

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Jerry

    #1

    page loading

    Hi!

    Is there a way to load a page based on the date in JavaScript or do I
    need the full functionality of JAVA to do this. I'm trying to create an auto
    website that would adjust the homepage according to the day of month or
    year. Any suggestions before I embark? I do have experience in c++
    programming from years ago and some java-as-required knowledge.

    Jerry


  • Lasse Reichstein Nielsen

    #2
    Re: page loading

    "Jerry" <jbilous@cogeco .ca> writes:
    [color=blue]
    > Is there a way to load a page based on the date in JavaScript or do I
    > need the full functionality of JAVA to do this.[/color]

    Javascript can do it.

    var today = new Date();
    location.href = "pageForDate"+t oday.getDate()+ ".html";

    This will switch the page to "pageForDate1.h tml" on the first,
    "pageForDate2.h tml" on the second etc.

    /L
    --
    Lasse Reichstein Nielsen - lrn@hotpop.com
    Art D'HTML: <URL:http://www.infimum.dk/HTML/randomArtSplit. html>
    'Faith without judgement merely degrades the spirit divine.'

    Comment

    Working...