Results 1 to 4 of 4
  1. #1
    Member
    Join Date
    January 18th, 2005
    Posts
    171
    Does anyone know where I can find a free, php based holiday (U.S) countdown script? Not just holidays, but all recognized "special" days. Something like Pets-Warehouse.com has.

    I found one on Hotscripts.com but it's not very user friendly, or complete.

    Thanks!

  2. #2
    pph Expert! Gordon's Avatar
    Join Date
    January 18th, 2005
    Location
    Edmonton Canada
    Posts
    5,781
    here you go, hope it works for you
    <BLOCKQUOTE class="ip-ubbcode-quote"><font size="-1">quote:</font><HR>&lt;!-- Countdown Wizard by Allan Saw. © 2002, all rights reserved.--&gt;

    &lt;font size="3"&gt;
    &lt;script language="JavaScript"&gt;
    &lt;!--
    var today = new Date;
    var Future0 = new Date;
    ThisYear = 2004;
    var FutureMonth = 11;
    var FutureDate = 25;
    var faraevent = "xmas day";
    Future0.setMonth(FutureMonth, FutureDate);
    Future0.setFullYear(ThisYear);
    today1 = Date.parse(today);
    future1 = Date.parse(Future0);
    secleft = future1 - today1;
    miliday = 24 * 60 * 60 * 1000;
    daysleft = secleft/miliday;
    daysleftint = Math.round(daysleft);
    if (daysleftint &gt; 1)
    document.write("There are ", daysleftint, " days until ", faraevent , "! ");
    else if (daysleftint == 1)
    document.write(faraevent, " is tomorrow! ");
    else if (today1 == future1)
    document.write(faraevent, " is today! ");
    //--&gt;
    &lt;/script&gt;
    &lt;/font&gt; <HR></BLOCKQUOTE>
    One day parasites and their ilk will be made illegal, I bet a few Lawyers will be pissed off when the day comes.
    Mr. Spitzer is fetching it nearer

    YouTrek

  3. #3
    Member
    Join Date
    January 18th, 2005
    Posts
    171
    that's great thanks!

    But you're going to make me enter in all those American holidays and what not? Is there a comprehensive list somewhere?

    I'm just a simple Canadian!

  4. #4
    pph Expert! Gordon's Avatar
    Join Date
    January 18th, 2005
    Location
    Edmonton Canada
    Posts
    5,781
    sorry vertygo this is the only script I know of.

    BTW we are not simply Canadians it's the Americans who are simple
    One day parasites and their ilk will be made illegal, I bet a few Lawyers will be pissed off when the day comes.
    Mr. Spitzer is fetching it nearer

    YouTrek

  5. Newsletter Signup

+ Reply to Thread

Similar Threads

  1. Featured: Datafeed to SQL script? Not price comparison script
    By oxplode in forum Programming / Datafeeds / Tools
    Replies: 19
    Last Post: June 26th, 2014, 02:27 PM
  2. Need Programmer for FTP script, datafeed import script
    By markwelch in forum Programming / Datafeeds / Tools
    Replies: 10
    Last Post: April 20th, 2007, 02:16 PM
  3. Need Programmer for FTP script, datafeed import script
    By markwelch in forum Programming / Datafeeds / Tools
    Replies: 0
    Last Post: March 5th, 2007, 04:24 PM
  4. found that gator cookie script and spyware script
    By Roland in forum Commission Junction - CJ
    Replies: 0
    Last Post: December 29th, 2002, 08:42 AM

Posting Permissions

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