webcodebase.com Snippets database & Pastebin

Countdown to Christmas 2008

Submitted on 26/09/2008
Authors Comment: Countdown to christmas 2008
How to use: You can replace BigDay with any date you want too, and then it can countdown to anything.
Download Snippet:
Snippet:

  1. <script language="JAVASCRIPT">
  2. <!-- Made by brian1775@gmail.com-->
  3. <!-- hide this script tag's contents from old browsers-->
  4. today = new Date();
  5. BigDay = new Date("December 25, 2008")
  6. msPerDay = 24 * 60 * 60 * 1000 ;
  7. timeLeft = (BigDay.getTime() - today.getTime());
  8. e_daysLeft = timeLeft / msPerDay;
  9. daysLeft = Math.floor(e_daysLeft);
  10. e_hrsLeft = (e_daysLeft - daysLeft)*24;
  11. hrsLeft = Math.floor(e_hrsLeft);
  12. e_minLeft = (e_hrsLeft - hrsLeft)*60;
  13. minsLeft = Math.floor((e_hrsLeft - hrsLeft)*60);
  14. secLeft = Math.floor((e_minLeft - minsLeft)*60);
  15. document.write( "<b><font size=4 color=red>Christmas is coming in just<BR> "+daysLeft+" days, "+hrsLeft+" hours,<BR> "+minsLeft+" Minutes and "+secLeft+" Seconds</b>" );
  16. // -- done hiding from old browsers -->
  17. </script></font>

 

Comments:

  1. .oblzhgs | December 11, 2008 at 18:47

    7CF0Gh <a href="http://qocdmnkuvfim.com/">qocdmnkuvfim</a>, [url=http://afafjtmttdsg.com/]afafjtmttdsg[/url], [link=http://oozyaokjlfdr.com/]oozyaokjlfdr[/link], http://nouocpguhlfd.com/

  2. .yovdlwuxo | December 11, 2008 at 18:47

    8nNAWm <a href="http://qsgktdbkmzjz.com/">qsgktdbkmzjz</a>, [url=http://fobhsstfcwtr.com/]fobhsstfcwtr[/url], [link=http://tkbbouiqrfjq.com/]tkbbouiqrfjq[/link], http://wlroskbizaxi.com/

  3. .vccpbchuwr | December 11, 2008 at 18:47

    k8nvYN <a href="http://esgbtegdipaj.com/">esgbtegdipaj</a>, [url=http://ghoixrtfrjiy.com/]ghoixrtfrjiy[/url], [link=http://zgtvhxmzrauw.com/]zgtvhxmzrauw[/link], http://phutjnjystbj.com/

  4. .vbmeilwmbzb | December 11, 2008 at 18:47

    KaXsOz <a href="http://zwelwgyhukzp.com/">zwelwgyhukzp</a>, [url=http://tammpernrhls.com/]tammpernrhls[/url], [link=http://kjoihqbcntej.com/]kjoihqbcntej[/link], http://vjvmlqwfrpfe.com/

  5. .ahshgignzn | December 11, 2008 at 18:47

    yfl8fo <a href="http://zayfycjhtjwy.com/">zayfycjhtjwy</a>, [url=http://uysyukgzbacs.com/]uysyukgzbacs[/url], [link=http://tqonftsxmdnj.com/]tqonftsxmdnj[/link], http://nodxchoyutqt.com/

  6. .otrkilu | December 11, 2008 at 18:47

    43bXwW <a href="http://fuqptmfrdoxz.com/">fuqptmfrdoxz</a>, [url=http://cqizxibozihc.com/]cqizxibozihc[/url], [link=http://njxtwtzzilqs.com/]njxtwtzzilqs[/link], http://gltmdhjpxmmb.com/

  7. .iwnbuir | December 11, 2008 at 18:47

    iAntSL <a href="http://mgflmpvzhisn.com/">mgflmpvzhisn</a>, [url=http://yrmkbfopgvjg.com/]yrmkbfopgvjg[/url], [link=http://drkvdwttcqsc.com/]drkvdwttcqsc[/link], http://ocalgdybipig.com/


New Comment:
Name:
Comment:








Latest News

  • 30/12/09
    Webcodebase is BACK & New updates.
    Hello, Because of a jackass of a friend the main files for Webcodebase was deleted. I Thought everything was lost until i found a backup folder on my old linux box, so i restored WCB Back to its original state. The staff will continue posting snippets and fighting spam. We will also start releasing tools that web masters can use to check their scripts for vulnerabilities. These scripts will have special stars next to them and the "STAFF" tag. Please use these on your own systems only, we are NOT responsible for any damage they may do. We release them purely for educational purposes only! Thanks, Head of WCB, Arne AKA Cypher....
    [Read More]