...

Countdown to Christmas

SDP2006
08-18-2003, 03:07 AM
I was bored so I wrote this script. Its pretty nifty.


<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.

SDP2006
08-19-2003, 09:04 PM
Feedback/input is welcome --

Thanks

swmr
08-21-2003, 07:08 AM
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! :p

SDP2006
08-22-2003, 09:36 PM
I didn't realize that I had made it ghostwhite until after I had posted it!

I just changed it.....

Thanks

scroots
08-23-2003, 11:41 AM
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

mum
09-22-2003, 06:46 AM
:) thank you very nice script:thumbsup:

mum

SDP2006
09-23-2003, 05:20 PM
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

marek_mar
09-23-2003, 07:15 PM
86400000 is 24 hours. (in miliseconds)

SDP2006
09-23-2003, 09:12 PM
Thanks, I new it was something like that. Needed my memory refreshed :)

poolsharkboy599
10-03-2003, 01:45 AM
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 :o !

SDP2006
10-03-2003, 10:04 PM
Nope, not taken from anyone. Wrote it myself. Why don't people at school believe me?

poolsharkboy599
10-14-2003, 01:13 PM
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. :eek:

link92
10-29-2003, 02:47 PM
NICE SCRIPT



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum