1. This Board Rocks has been moved to a new domain: CarolinaPanthersForum.com

    All member accounts remain the same.

    Most of the content is here, as well. Except that the Preps Forum has been split off to its own board at: http://www.prepsforum.com

    Welcome to the new Carolina Panthers Forum!

    Dismiss Notice

Countdown Till Football Clock

Discussion in 'Carolina Panthers' started by The Brain, Jun 18, 2002.

  1. The Brain

    The Brain Defiler of Cornflakes

    Posts:
    32,125
    Likes Received:
    1
    Joined:
    Jan 8, 2003
    Location:
    Over There ---->
    Hey Larry... you can use this script to make a Clock... follow all the instructions in it... its pretty simple.
    ________________________________________________

    <script language="JavaScript1.2">

    function setcountdown(theyear,themonth,theday){
    yr=theyear;mo=themonth;da=theday
    }

    //////////CONFIGURE THE COUNTDOWN SCRIPT HERE//////////////////

    //STEP 1: Configure the countdown-to date, in the format year, month, day:
    setcountdown(2001,12,25)

    //STEP 2: Change the two text below to reflect the occasion, and message to display on that occasion, respectively
    var occasion="Christmas!"
    var message_on_occasion="Merry Christmas!"

    //STEP 3: Configure the below 5 variables to set the width, height, background color, and text style of the countdown area
    var countdownwidth='480px'
    var countdownheight='20px'
    var countdownbgcolor='lightblue'
    var opentags='<font face="Verdana"><small>'
    var closetags='</small></font>'

    //////////DO NOT EDIT PASS THIS LINE//////////////////

    var montharray=new Array("Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec")
    var crosscount=''

    function start_countdown(){
    if (document.layers)
    document.countdownnsmain.visibility="show"
    else if (document.all||document.getElementById)
    crosscount=document.getElementById&&!document.all?document.getElementById("countdownie") : countdownie
    countdown()
    }

    if (document.all||document.getElementById)
    document.write('<span id="countdownie" style="width:'+countdownwidth+'; background-color:'+countdownbgcolor+'"></span>')

    window.onload=start_countdown


    function countdown(){
    var today=new Date()
    var todayy=today.getYear()
    if (todayy < 1000)
    todayy+=1900
    var todaym=today.getMonth()
    var todayd=today.getDate()
    var todayh=today.getHours()
    var todaymin=today.getMinutes()
    var todaysec=today.getSeconds()
    var todaystring=montharray[todaym]+" "+todayd+", "+todayy+" "+todayh+":"+todaymin+":"+todaysec
    futurestring=montharray[mo-1]+" "+da+", "+yr
    dd=Date.parse(futurestring)-Date.parse(todaystring)
    dday=Math.floor(dd/(60*60*1000*24)*1)
    dhour=Math.floor((dd%(60*60*1000*24))/(60*60*1000)*1)
    dmin=Math.floor(((dd%(60*60*1000*24))%(60*60*1000))/(60*1000)*1)
    dsec=Math.floor((((dd%(60*60*1000*24))%(60*60*1000))%(60*1000))/1000*1)
    //if on day of occasion
    if(dday<=0&&dhour<=0&&dmin<=0&&dsec<=1&&todayd==da){
    if (document.layers){
    document.countdownnsmain.document.countdownnssub.document.write(opentags+message_on_occasion+closetags)
    document.countdownnsmain.document.countdownnssub.document.close()
    }
    else if (document.all||document.getElementById)
    crosscount.innerHTML=opentags+message_on_occasion+closetags
    return
    }
    //if passed day of occasion
    else if (dday<=-1){
    if (document.layers){
    document.countdownnsmain.document.countdownnssub.document.write(opentags+"Occasion already passed! "+closetags)
    document.countdownnsmain.document.countdownnssub.document.close()
    }
    else if (document.all||document.getElementById)
    crosscount.innerHTML=opentags+"Occasion already passed! "+closetags
    return
    }
    //else, if not yet
    else{
    if (document.layers){
    document.countdownnsmain.document.countdownnssub.document.write(opentags+dday+ " days, "+dhour+" hours, "+dmin+" minutes, and "+dsec+" seconds left until "+occasion+closetags)
    document.countdownnsmain.document.countdownnssub.document.close()
    }
    else if (document.all||document.getElementById)
    crosscount.innerHTML=opentags+dday+ " days, "+dhour+" hours, "+dmin+" minutes, and "+dsec+" seconds left until "+occasion+closetags
    }
    setTimeout("countdown()",1000)
    }
    </script>

    <ilayer id="countdownnsmain" width=&{countdownwidth}; height=&{countdownheight}; bgColor=&{countdownbgcolor}; visibility=hide><layer id="countdownnssub" width=&{countdownwidth}; height=&{countdownheight}; left=0 top=0></layer></ilayer>
     
  2. magnus

    magnus Chump-proof

    Posts:
    53,697
    Likes Received:
    2
    Joined:
    Feb 5, 2002
    Location:
    anywhere I lay my head I'm gonna call my home
    not knowing where in the header I'd put that, specific to this board kinda hurts my involvement in it. Otherwise I'd hook you up right quick.
     
  3. LarryD

    LarryD autodidact polymath

    Posts:
    29,846
    Likes Received:
    0
    Joined:
    Feb 7, 2002
    Location:
    living the dream
    thanks. i'll get it connected when i get some time at home. i need to look at the clock every day to remind me that things are looking up. :)
     
  4. The Brain

    The Brain Defiler of Cornflakes

    Posts:
    32,125
    Likes Received:
    1
    Joined:
    Jan 8, 2003
    Location:
    Over There ---->
    That I can't answer... if I could tinker around with the Admin stuff I could... but I'd rather not... I wouldn't want to be blamed for fuckin up the board... LOL
     
  5. catch

    catch Guest

    There are 53 days till the Panther beat the Spuriors. Dammit.
     
  6. Puttingood

    Puttingood Guest

    52 days 11 hours 16 min
     

Share This Page