Democrats Begin the 110th Congress in the Majority
Untitled
function gettime()
{
hours=hours*1;
minutes=minutes*1;
seconds=seconds*1;
if(seconds < 10) {
seconds="0"+seconds;
}
if(minutes < 10) {
minutes="0"+minutes;
}
if(hours < 10) {
hours="0"+hours;
}
document.getElementById("hours").innerHTML=hours;
document.getElementById("minutes").innerHTML=minutes;
document.getElementById("seconds").innerHTML=seconds;
}
function UpdateTimer() {
xmlhours = (document.getElementById("hours").innerHTML);
xmlminutes = (document.getElementById("minutes").innerHTML);
xmlseconds = (document.getElementById("seconds").innerHTML);
xmlhours=xmlhours*1;
xmlminutes=xmlminutes*1;
xmlseconds=xmlseconds*1;
if(status=='1') {
xmlseconds=xmlseconds+1;
if(xmlseconds > 60) {
xmlseconds = 0;
xmlminutes = xmlminutes + 1;
} else if(xmlseconds == 60) {
xmlseconds = "0"+0;
xmlminutes = xmlminutes + 1;
} else if(xmlseconds < 10) {
xmlseconds="0"+xmlseconds;
}
if(xmlminutes > 60) {
xmlminutes=0;
xmlhours = xmlhours +1;
} else if(xmlminutes == 60) {
xmlminutes="0"+0;
xmlhours = xmlhours +1;
} else if(xmlminutes <10) {
xmlminutes = "0"+xmlminutes;
}
} else {
}
if(xmlseconds==0) {
xmlseconds=='00';
}
if(xmlminutes==0) {
xmlminutes=='00';
}
if(xmlhours==0) {
xmlhours=='00';
}
document.getElementById("hours").innerHTML=xmlhours;
document.getElementById("minutes").innerHTML=xmlminutes;
document.getElementById("seconds").innerHTML=xmlseconds;
//}
}
#clock {width:200px;height:100px;}
#clocktop {background:url(http://majorityleader.house.gov/virtualapplicationresources/images/main/100_top.jpg);width:200px;height:52px;background-repeat:no-repeat;float:left;clear:left;border:none;margin:0px;}
#clockmid {text-align:center;background:url(http://majorityleader.house.gov/virtualapplicationresources/images/main/100_mid.gif);width:200px;height:39px;background-repeat:no-repeat;font:verdana;font-size:32px;float:left;clear:left;border:none;margin:0px;}
#clockText {text-align:center;font:verdana;font-size:34px;float:left;clear:left;border:none;margin:0px;}
#clockbot {background:url(http://majorityleader.house.gov/virtualapplicationresources/images/main/100_bot2.gif);width:200px;height:13px;background-repeat:no-repeat;float:left;clear:left;border:none;margin:0px;}
Time elapsed in the first 100 legislative hours
var xmlhours;
var xmlminutes;
var xmlseconds;
gettime();
if(status=='1') {
var timerID = setInterval("UpdateTimer()", 1000);
}