Countdown timer till Revolutions

CraHan

Hey, just an idea I got from reading a post in one of the other forums. Would it be possible to put some javascript (or even php) in the header of the site that displays a countdown timer till the release of Revolutions? I know it's nothing 'mission critical', but it stil might be cool :D
Matrix.EXE

If it is going to be used, here are the codes to paste in...

In Javascript...


<script language="javascript">
<!--
Today = new Date();
TodayYear = Today.getYear();
if (TodayYear < 2000) TodayYear += 1900;
// put your date here
DateToFind = new Date("November 5, " + TodayYear);
difference = DateToFind.getTime() - Today.getTime();
difference = Math.floor(difference / (1000 * 60 * 60 * 24));
note = "";
if (difference < 0) {
difference = 365 - difference;
TodayYear = TodayYear + 1;
note = " +/-1";
}
document.write(difference + " days until November 5, " + TodayYear + note);
-->
</script>



..And in PHP...


<?
$day = 5; // Day
$month = 11; // Month
$year = 2003; // Year

if ($month == 1) $month_name= "January";
if ($month == 2) $month_name= "February";
if ($month == 3) $month_name= "March";
if ($month == 4) $month_name= "April";
if ($month == 5) $month_name= "May";
if ($month == 6) $month_name= "June";
if ($month == 7) $month_name= "July";
if ($month == 8) $month_name= "August";
if ($month == 9) $month_name= "September";
if ($month == 10) $month_name= "October";
if ($month == 11) $month_name= "November";
if ($month == 12) $month_name= "December";

print ((int)((mktime (0,0,0,$month,$day,$year) - time(void))/86400) . " days until $month_name $day, $year");
?>


:)
SecondChld

Hell yeah, I love code. Thanks Matrix.exe
Morpheus1

Hey SecondChld you have a nice sing it has morpheus in it thats one of the reasons, but any way? is this count down going to be on soon?
UT

Luc if you see this I think it would be a wonderful idea to have it on the main page only and not mimiced, so that it doesn't suck too much bandwidth. Definately yes.

UT
NightHawk

Dosen't it come out November 5th?
New free

I THINK
Agent_Neo

It does come out Nov 5 at least that what i heard from lots o people
and a timer would kick

View Full Version : Countdown timer till Revolutions


The Matrix Online Section - new advertisement?



Thank you for visiting the home of The Matrix - archive home.