Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 13 of 13
  1. #1
    Regular Coder
    Join Date
    May 2003
    Location
    34 54' N 82 13' W
    Posts
    996
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Countdown to Christmas

    I was bored so I wrote this script. Its pretty nifty.

    Code:
    <html>
    <head>
    <title>Countdown to Christmas</title>
    <style type="text/css">
    BODY {
    	margin: 0px;
    	border-top: 15px solid red;
    	border-left: 15px solid green;
    	border-bottom: 15px solid red;
    	border-right: 15px solid green;
    	scrollbar-base-color: white;
    	scrollbar-arrow-color: white;
    	scrollbar-3dlight-color: white;
         }
    </style>
    </head>
    <body bgcolor="white">
    <font color="green" size="7" face="papyrus">
    <center>
    <br>
    <IMG SRC="http://aunimages.animfactory.com/animations/holiday_events/christmas/merry_christmas_holly_md_wht.gif"><BR>
    <scRIPT LANGUAGE="JavaScript">
    var now = new Date();
    var then = new Date("December 25, 2003");
    var gap = then.getTime() - now.getTime();
    gap = Math.floor(gap / (1000 * 60 * 60 * 24));
    document.write("Only " + gap + " more days until Christmas");
    </SCRIPT>
    </center>
    </font>
    <center><img src="http://www.stanford.edu/group/nacf/pics/christmas.tree.gif"></center>
    <center><font face="Verdana, sans-serif" size="1" color="black">Script written by Stevie Peele</center></font>
    </body>
    </html>
    Copy every bit of code into notepad and save it as christmas.html.

    Its really nice to look at every now and then.
    Last edited by SDP2006; 08-22-2003 at 09:36 PM.
    Stevie Peele
    Neverside IRC Network - irc.veonex.net | tc.tutorialnetwork.org
    #dev - any programming,etc. question
    #design - design discussion and critque
    #central - general chat
    Come join us!

  • #2
    Regular Coder
    Join Date
    May 2003
    Location
    34 54' N 82 13' W
    Posts
    996
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Feedback/input is welcome --

    Thanks
    Last edited by SDP2006; 08-20-2003 at 01:42 AM.
    Stevie Peele
    Neverside IRC Network - irc.veonex.net | tc.tutorialnetwork.org
    #dev - any programming,etc. question
    #design - design discussion and critque
    #central - general chat
    Come join us!

  • #3
    Regular Coder
    Join Date
    Feb 2003
    Posts
    638
    Thanks
    0
    Thanked 0 Times in 0 Posts
    I like it.

    Overall, a nice appearance... although, the white 'christmas.gif' background doesn't match the ghostwhite bgcolor, which looks odd.

    The border height renders a bit differently in Moz:1.3.1, & NS:6, than in IE:6 ... but enclosing all content in a 100%-high <div> seems to fix that.

    "Happy Holidays", in advance!
    hmm... ?

  • #4
    Regular Coder
    Join Date
    May 2003
    Location
    34 54' N 82 13' W
    Posts
    996
    Thanks
    0
    Thanked 0 Times in 0 Posts
    I didn't realize that I had made it ghostwhite until after I had posted it!

    I just changed it.....

    Thanks
    Stevie Peele
    Neverside IRC Network - irc.veonex.net | tc.tutorialnetwork.org
    #dev - any programming,etc. question
    #design - design discussion and critque
    #central - general chat
    Come join us!

  • #5
    Senior Coder
    Join Date
    Jun 2002
    Location
    UK
    Posts
    1,137
    Thanks
    0
    Thanked 0 Times in 0 Posts
    I got a script form javascript kit.com to count down until my explorer belt expedition, and i included a copy button as in the box i have it says x days, x hours, x mins, x seconds to go! so i can quickly copy the contents.

    scroots
    Spammers next time you spam me consider the implications:
    (1) that you will be persuaded by me(in a legitimate mannor)
    (2)It is worthless to you, when i have finished

  • #6
    mum
    mum is offline
    New to the CF scene
    Join Date
    Sep 2003
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts
    thank you very nice script

    mum

  • #7
    Regular Coder
    Join Date
    May 2003
    Location
    34 54' N 82 13' W
    Posts
    996
    Thanks
    0
    Thanked 0 Times in 0 Posts
    This sounds dumb, but Its been a little while since I wrote this and have wrote a script.

    I can remember what
    gap = Math.floor(gap / (1000 * 60 * 60 * 24)); does

    I know it divides the gap by 86400000. But what is 86400000??

    Thanks
    Stevie Peele
    Neverside IRC Network - irc.veonex.net | tc.tutorialnetwork.org
    #dev - any programming,etc. question
    #design - design discussion and critque
    #central - general chat
    Come join us!

  • #8
    Senior Coder
    Join Date
    Aug 2003
    Location
    One step ahead of you.
    Posts
    2,815
    Thanks
    0
    Thanked 3 Times in 3 Posts
    86400000 is 24 hours. (in miliseconds)

  • #9
    Regular Coder
    Join Date
    May 2003
    Location
    34 54' N 82 13' W
    Posts
    996
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Thanks, I new it was something like that. Needed my memory refreshed
    Stevie Peele
    Neverside IRC Network - irc.veonex.net | tc.tutorialnetwork.org
    #dev - any programming,etc. question
    #design - design discussion and critque
    #central - general chat
    Come join us!

  • #10
    New Coder
    Join Date
    Sep 2003
    Location
    Near Stevie Peele
    Posts
    12
    Thanks
    0
    Thanked 0 Times in 0 Posts
    LoL what's up Stevie. This is matt. I just wanted to say nice script, though when I first saw the post I thought that either you copied someone or someone copied you !
    If CON is the opposite of PRO, then what's the opposite of PROGRESS?

  • #11
    Regular Coder
    Join Date
    May 2003
    Location
    34 54' N 82 13' W
    Posts
    996
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Nope, not taken from anyone. Wrote it myself. Why don't people at school believe me?
    Stevie Peele
    Neverside IRC Network - irc.veonex.net | tc.tutorialnetwork.org
    #dev - any programming,etc. question
    #design - design discussion and critque
    #central - general chat
    Come join us!

  • #12
    New Coder
    Join Date
    Sep 2003
    Location
    Near Stevie Peele
    Posts
    12
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Oh no no, I believed you, but I'm saying that at first I did not realize that SDP2006 was you. --Thought someone might of copied you.
    If CON is the opposite of PRO, then what's the opposite of PROGRESS?

  • #13
    New Coder
    Join Date
    Aug 2003
    Posts
    74
    Thanks
    0
    Thanked 0 Times in 0 Posts
    NICE SCRIPT
    Now known as Error 404
    This account is as dead as a parrot


  •  

    Posting Permissions

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