Halo2 And Half-life2 Countdowns
Beast
Armonkyi Join Date: 2003-04-21 Member: 15731Members, Constellation
<div class="IPBDescription">For those who are impatient (like me :D)</div> <a href='http://www.haxgames.com/countdown/countdowns.html' target='_blank'>http://www.haxgames.com/countdown/countdowns.html</a>
After some cutting and pasting and a bit of haxing, I got this countdown timer page set up <!--emo&:D--><img src='http://www.unknownworlds.com/forums/html//emoticons/biggrin-fix.gif' border='0' style='vertical-align:middle' alt='biggrin-fix.gif' /><!--endemo-->
Now we can all stare at the page endlessly for the next 14 days and 8 hours.... o.o
Update: *has fixed page centering problems \o/*
After some cutting and pasting and a bit of haxing, I got this countdown timer page set up <!--emo&:D--><img src='http://www.unknownworlds.com/forums/html//emoticons/biggrin-fix.gif' border='0' style='vertical-align:middle' alt='biggrin-fix.gif' /><!--endemo-->
Now we can all stare at the page endlessly for the next 14 days and 8 hours.... o.o
Update: *has fixed page centering problems \o/*
Comments
This thing relies on your system clock. Just advance it to Nov. 15th at 11:59pm for all your simili-party pleasures
This thing relies on your system clock. Just advance it to Nov. 15th at 11:59pm for all your simili-party pleasures <!--QuoteEnd--> </td></tr></table><div class='postcolor'> <!--QuoteEEnd-->
Is there a way of getting it so it relies on a more accurate timer? D:
<!--c1--></div><table border='0' align='center' width='95%' cellpadding='3' cellspacing='1'><tr><td><b>CODE</b> </td></tr><tr><td id='CODE'><!--ec1--><html>
<head></head>
<body>
<script>
var timerID = null;
var timerRunning = false;
function startClock() {
stopClock();
timeRemaining();
}
function stopClock() {
if (timerRunning)
clearTimeout(timerID);
timerRunning = false;
}
function timeRemaining() {
var now = new Date();
var then = new Date(2004, 10, 15, 23, 59, 59);
var yearsLeft; var daysLeft; var hoursLeft; var minsLeft; var secsLeft;
secsLeft = Math.round(then.getTime() - (now.getTime() + 1000)) / 1000;
daysLeft = Math.floor(secsLeft / 86400);
secsLeft %= 86400;
hoursLeft = Math.floor(secsLeft / 3600);
secsLeft %= 3600;
minsLeft = Math.floor(secsLeft / 60);
secsLeft %= 60;
secsLeft = Math.round(secsLeft);
if (secsLeft == 60) {
secsLeft = 0;
minsLeft = minsLeft++;
}
if (minsLeft == 60) {
minsLeft = 0;
hoursLeft = hoursLeft++;
}
if (hoursLeft == 24) {
hoursLeft = 0;
daysLeft = dayssLeft++;
}
document.doomsday.total.value = (daysLeft + " days, " + hoursLeft + " hrs, " + minsLeft + " min, " + secsLeft + " sec");
timerID = setTimeout("timeRemaining()", 1000);
timerRunning = true;
}
window.onload=startClock;
</script>
<form name="doomsday">Time Remaining: <input readonly="true" type="text" name="total" size="27" style="border: 0px; background-color: #EAEAEA; font-size: 10pt;"></form>
</body>
</html><!--c2--></td></tr></table><div class='postcolor'><!--ec2-->
<!--c1--></div><table border='0' align='center' width='95%' cellpadding='3' cellspacing='1'><tr><td><b>CODE</b> </td></tr><tr><td id='CODE'><!--ec1--> *code goes here! see above post! :D*<!--c2--></td></tr></table><div class='postcolor'><!--ec2--> <!--QuoteEnd--></td></tr></table><div class='postcolor'><!--QuoteEEnd-->
How do I change the font color in the form text box o.o?
[edit] by adding "Color : #numberhere" - Thanks people on IRC <!--emo&:D--><img src='http://www.unknownworlds.com/forums/html//emoticons/biggrin-fix.gif' border='0' style='vertical-align:middle' alt='biggrin-fix.gif' /><!--endemo--> [/edit]
<a href='http://www.futurefirefighter.net/Half-Life_2_Countdown_TransparentNumbers.rar' target='_blank'>http://www.futurefirefighter.net/Half-Life...rentNumbers.rar</a>
How does one get to the server clock?
How does one get to the server clock? <!--QuoteEnd--> </td></tr></table><div class='postcolor'> <!--QuoteEEnd-->
well if my php still is in my head...
<!--c1--></div><table border='0' align='center' width='95%' cellpadding='3' cellspacing='1'><tr><td><b>CODE</b> </td></tr><tr><td id='CODE'><!--ec1-->date("\T\he \\t\i\m\e \i\s: H.i");
<!--c2--></td></tr></table><div class='postcolor'><!--ec2-->
which will display the time from the server clock
Oh and whats Halo ?!??
</HL2fanboyism>