countdown to freedom
<SCRIPT LANGUAGE="JavaScript">
<!-- Original: Alan Palmer -->
<!-- Web Site: http://www.jsr.communitech.net -->
<!-- This script and many more are available free online at -->
<!-- The JavaScript Source!! http://javascript.internet.com -->
<!--Edited by John Shanks on Jan 22, 2005-->
<!--http://liberalartsstudent.blogspot.com-->
<!-- Begin
var date = new Date("January 30, 2005");
var description = "Iraqi Elections";
var now = new Date();
var diff = date.getTime() - now.getTime();
var days = Math.floor(diff / (1000 * 60 * 60 * 24));
document.write("<center><h3>")
if (days > 1) {
document.write(days+1 + " days until " + description);
}
else if (days == 1) {
document.write("Only two days until " + description);
}
else if (days == 0) {
document.write("Tomorrow are the " + description);
}
else if (days == -1){
document.write("Today Iraq votes" + "!");
}
else {
document.write("Iraq has voted. May the next hundred years have a free Iraq");
}
document.write("</h3></center>");
// End -->
</script>







0 Comments: