FordFusionClub.com banner
1 - 4 of 4 Posts

· Registered
Joined
·
71 Posts
Discussion Starter · #3 ·
Don't worry about it
if you are really interested take this save it in notepad under the .htm extension.

Code:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN">
<html>
<head>
<title>SuperBowl Countdown</title>
<script language="JavaScript" type="text/javascript"> 
var IE = (document.all) ? 1 : 0;
var DOM = (document.getElementById) ? 1 : 0;
var NS4 = (document.layers) ? 1 : 0;
var MAC = ((navigator.appVersion.indexOf("PPC") >0) || (navigator.appVersion.indexOf("Mac") >0)) ? 1 : 0;
var ddTimer = null;
var dd_ns4 = (document.layers) ? 1 : 0;
var dd_ie4 = (document.all) ? 1 : 0;
var dd_dom = ((document.getElementById) && (!dd_ie4)) ? 1 : 0;

function closeWindow() {
	window.close();
}
// --></script></td></tr></table>
<script type="text/javascript">
var nTime;
var Tyear=2007;
var Tmonth=2;
var Tday=4;
var Thour=17;
var Tmin=0;
var Tsec=0;
var Tms=0;

Tmonth = Tmonth-1; Thour=Thour+5;
var nTarget = Date.UTC(Tyear, Tmonth, Tday, Thour, Tmin, Tsec, Tms)

function drawCountdown(layer,text) {
  if (DOM && document.getElementById(layer)) {
    document.getElementById(layer).innerHTML = text;
    }
  else if (IE && document.all[layer]) {
    document.all[layer].innerHTML = text;
    }
  }

function Tick() {
    var dNow = new Date();
    nTime = nTarget - dNow.valueOf();
    if (nTime < 0) nTime = 0;
    nTime = Math.floor(nTime / 1000);

    Display("cdDay2", "cdDay1", "cdDay0", 86400);
    Display(null, "cdHour1", "cdHour0", 3600);
    Display(null, "cdMinute1", "cdMinute0", 60);
    Display(null, "cdSecond1", "cdSecond0", 1);
  }

function Display(el2, el1, el0, nDivisor) {
    var nValue = (nTime - (nTime %= nDivisor)) / nDivisor;

    drawCountdown(el0,(nValue % 10));
    nValue = Math.floor(nValue / 10);
    drawCountdown(el1,(nValue % 10));
    if (el2) {
    nValue = Math.floor(nValue / 10);
    drawCountdown(el2,(nValue % 10));
    }
  }

if (IE || DOM) {
    Tick();
    window.setInterval('Tick()', 1000);
  }
</script>
<style type="text/css">
div#sbCountDown {
  background: url('[url]http://images.nfl.com/images/sb41/countdown_clock_bg.gif'[/url]) no-repeat center center;
  width: 390px;
  margin: 0px auto;
  text-align: center;
  padding-top: 30px;
  padding-bottom: 10px;}
div#sbCountDown span {font-size: 11px; font-weight: bold;}
div#sbCountDown span.label {padding: 0 5px 0 2px; font-weight: normal;}
</style>
<div id="sbCountDown">
  <span id=cdDay2></span><span id=cdDay1></span><span id=cdDay0></span><span class="label">DAYS</span>
  <span id=cdHour1></span><span id=cdHour0></span><span class="label">HRS</span>
  <span id=cdMinute1></span><span id=cdMinute0></span><span class="label">MINS</span>
  <span id=cdSecond1></span><span id=cdSecond0></span><span class="label">SECS</span>
</div>
</html>
 
1 - 4 of 4 Posts
This is an older thread, you may not receive a response, and could be reviving an old thread. Please consider creating a new thread.
Top