kayleeamanda ([info]kayleeamanda) wrote,
  • Mood: anxious
  • Music: Hollaback Girl by Gwen Stefani
<!--- Countdown code by Thomas | duckinthetrunk.com --->
<form name='countdown'>
<input type='text' name='countdown' size='42' style='border:0px'>
</form>

<script language='javascript'>
function timer() {
now = new Date();
then = new Date(2005,6,23,12,45,0);
milldiff = then-now;
diff = Math.round(milldiff/1000);
if (diff>0) {
     minu = Math.floor(diff/60);
     sec = diff-(minu*60);
     hr = Math.floor(minu/60);
     minu = minu-(hr*60);
     day = Math.floor(hr/24);
     hr = hr-(day*24);

     if (day==1) {dday="day"}else{dday="days"}
     if (hr==1) {dhr="hour"}else{dhr="hours"}
     if (minu==1) {dminu="minute"}else{dminu="minutes"}
     if (sec==1) {dsec="second"}else{dsec="seconds"}

     if (day==0) {
          ender = hr+" "+dhr+", "+minu+" "+dminu+", and "+sec+" "+dsec;
     }else{
          ender = day+" "+dday+", "+hr+" "+dhr+", "+minu+" "+dminu+", and "+sec+" "+dsec;
     }
} else {
     ender = 'We\'re gone to the cottage';
}
document.countdown.countdown.value=ender;
setTimeout('timer()',1000);
}
setTimeout('timer()',1);
</script>
<!--- End countdown --->
Yay cottage soon! I need to do some serious soul-searching.

  • Post a new comment

    Error

    Your IP address will be recorded 

  • 0 comments
Create an Account
Forgot your login or password?
Facebook Twitter More login options
English • Español • Deutsch • Русский…