Here you are Hope this helps
Code:
<html>
<head>
<style type="text/css">
div.tv{
float:left;
width:180px;
padding-top:4EM;
padding-left:0.5em;
padding-right:0.5em;
text-align:center;
height:130px;
background-image:URL(http://dtvallocations.com/tvguide.png);
background-color:#000;
}
</style>
</head>
<body>
<div class="tv">
<script>
/*
Count down until any date script-
By JavaScript Kit (www.javascriptkit.com)
Over 200+ free scripts here!
*/
//change the text below to reflect your own,
var before="the end of analog TV"
var current="Digital TV is now mandatory!"
var montharray=new Array("Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec")
function countdown(yr,m,d){
var today=new Date()
var todayy=today.getYear()
if (todayy < 1000)
todayy+=1900
var todaym=today.getMonth()
var todayd=today.getDate()
var todaystring=montharray[todaym]+" "+todayd+", "+todayy
var futurestring=montharray[m-1]+" "+d+", "+yr
var difference=(Math.round((Date.parse(futurestring)-Date.parse(todaystring))/(24*60*60*1000))*1)
var dstring=difference.toString()
if (difference==0)
document.write(current)
else if (difference>0){
document.write("Only<br/>")
for (i=0;i<=dstring.length-1;i++)
document.write('<img src="http://dtvallocations.com/countdown/c'+dstring.charAt(i)+'.gif">')
document.write(' <br />days until '+before)
}
}
//enter the count down date using the format year/month/day
countdown(2009,02,17)
</script>
</div>
</body>
</html>
Bookmarks