SitePoint Sponsor

User Tag List

Results 1 to 5 of 5
  1. #1
    SitePoint Guru davedibiase's Avatar
    Join Date
    Aug 2001
    Location
    Toronto, Canada
    Posts
    829
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Help Quick...java Script Freaks Here!

    I was just assigned an events schedule...simple HTML page...cant do it in Java becuase the server doesn't allow ASP..., so I just did a basic html site with all the months separated into there own files.

    What I need VERY quickly is if someone could please write a small script to redirect to the proper months page when that page is loaded. For example if they load the page in events/main.htm it will find the month on the server/for client and redirect them to that page. *HTML Pages named by the month that it holds.

    HURRY PWWEEEAAAASSSSSSEEEEEEEEEEEEEEE...leaving for a soccer tournament and I NEED this done TONIGHT ...even if you can get it to me when no one has posted then that would be GREAT.

    Be on for the next 2 more hours....HURRY! ...
    ||Dave Di Biase||
    ----------------------------------
    "There are 2 secrets in life. 1) Never say everything you know."
    GFXWARS - The ultimate graphics battle!

  2. #2
    SitePoint Zealot
    Join Date
    Apr 2001
    Location
    Toronto, Ontario, Canada, Earth
    Posts
    138
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    try this:
    Code:
    <script language=JavaScript>
    var thedate=new Date();
    var month=thedate.getMonth();
    var montharray=new Array("January","February","March","April","May","June","July","August","September","October","November","December");
    location.href=montharray[month]+".html";
    </script>
    good luck in your soccer tournament,

    Jason Weinstein
    http://www.MaximumEdge.com/

  3. #3
    SitePoint Guru davedibiase's Avatar
    Join Date
    Aug 2001
    Location
    Toronto, Canada
    Posts
    829
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    THANK YOU THANK YOU!

    YOU ARE THE BEST...LIFE SAVER!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! NOW INSERT THIS AND AWAY I GO...GOTTA LEAVE NOW...

    Thanks...

    Me = goalie

    Bringing my laptop so prov be able to get a connection at the hotel in St.Catherins (Niagra Falls)...

    see ya guys later...
    ||Dave Di Biase||
    ----------------------------------
    "There are 2 secrets in life. 1) Never say everything you know."
    GFXWARS - The ultimate graphics battle!

  4. #4
    SitePoint Guru
    Join Date
    Sep 1999
    Location
    Singapore
    Posts
    854
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Ahh, goalies, high pressure position. I usually play right fullback. I wonder if we have enough people here to fill 11 positions.

  5. #5
    SitePoint Guru davedibiase's Avatar
    Join Date
    Aug 2001
    Location
    Toronto, Canada
    Posts
    829
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    rofl...

    Well I dont know :-)...how many actually play here?...

    I started at 6...went to a special goalie school but stopped it at 8
    ||Dave Di Biase||
    ----------------------------------
    "There are 2 secrets in life. 1) Never say everything you know."
    GFXWARS - The ultimate graphics battle!


Bookmarks

Posting Permissions

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