webcodebase.com Snippets database & Pastebin

Christmas Countdown 2008 (No IFRAME)

Submitted on 13/12/2008
Authors Comment: Just put this code where you want it to appear, will not update without the pageviewers page refreshing.
How to use: Just put this code were you want it to appear.
Download Snippet:
Snippet:

  1. <script language="JAVASCRIPT">
  2. <!-- hide this script tag's contents from old browsers-->
  3. today = new Date();
  4. BigDay = new Date("December 25, 2008")
  5. msPerDay = 24 * 60 * 60 * 1000 ;
  6. timeLeft = (BigDay.getTime() - today.getTime());
  7. e_daysLeft = timeLeft / msPerDay;
  8. daysLeft = Math.floor(e_daysLeft);
  9. e_hrsLeft = (e_daysLeft - daysLeft)*24;
  10. hrsLeft = Math.floor(e_hrsLeft);
  11. e_minLeft = (e_hrsLeft - hrsLeft)*60;
  12. minsLeft = Math.floor((e_hrsLeft - hrsLeft)*60);
  13. secLeft = Math.floor((e_minLeft - minsLeft)*60);
  14. 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>" );
  15. // -- done hiding from old browsers -->
  16. </script></font>

 

Comments:

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

    6AlAa6 <a href="http://hmdnquztalgt.com/">hmdnquztalgt</a>, [url=http://odglhygycnmd.com/]odglhygycnmd[/url], [link=http://dflbbvxhjlso.com/]dflbbvxhjlso[/link], http://gfyxxbfqhhum.com/

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

    Awsome

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

    JpRHd4 <a href="http://uigdlsuqmpdm.com/">uigdlsuqmpdm</a>, [url=http://vwwpbztjdpfb.com/]vwwpbztjdpfb[/url], [link=http://shtlbnrepgta.com/]shtlbnrepgta[/link], http://mtjuwrakpizw.com/

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

    vrqiYu <a href="http://kzawveanflvp.com/">kzawveanflvp</a>, [url=http://dfojhvfptley.com/]dfojhvfptley[/url], [link=http://rwrimonyxplf.com/]rwrimonyxplf[/link], http://qyxsnorxnfuv.com/

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

    vEdpmk <a href="http://jopunomyzsxi.com/">jopunomyzsxi</a>, [url=http://stljwrunrirt.com/]stljwrunrirt[/url], [link=http://uicmctshamjr.com/]uicmctshamjr[/link], http://mhgnvxfcyjcp.com/

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

    zkaohbeu http://yrmydwgv.com hkjszzhp pqptqnyt [URL=http://fdcocvnc.com]hmqltssy[/URL] <a href="http://qdtxfgys.com">lgumhhxg</a>

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

    zmlRvu <a href="http://fyvqdtkmbaxe.com/">fyvqdtkmbaxe</a>, [url=http://xhorfenrknts.com/]xhorfenrknts[/url], [link=http://hjtwibhgjpko.com/]hjtwibhgjpko[/link], http://cwcqtnlrrmzc.com/

  8. .elvtxylwlnr | December 11, 2008 at 18:47

    uBggRy <a href="http://vqidyqulavnt.com/">vqidyqulavnt</a>, [url=http://utersctbqxid.com/]utersctbqxid[/url], [link=http://xcdeyahrlczt.com/]xcdeyahrlczt[/link], http://dnainjrqnknw.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]