JS Countdown One
HTML code:
<script language= "Javas cript" type= "Text/javas cript" >
function DJs () {
var urodz= new Date ("11/12/2008");
var now = new Date ();
var num
var ile = Urodz.gettime ()-now.gettime ();
var dni = Math.floor (ile/(1000 * 60 * 60 * 24));
if (DNI >1)
Num=dni+1
else if (dni = 1) num=2
else if (dni = 0) num=1
else num=0
document.write (num)
}
</script>
Code two
<script language= "Javas cript" >
<!--begin
var timedate= new Date ("January 14,2006");
var times= "Postgraduate examination";
var now = new Date ();
var date = Timedate.gettime ()-now.gettime ();
var time = Math.floor (Date/(1000 * 60 * 60 * 24));
if (time >= 0);
document.write ("<li><font color= #dedbde > Now from 2006" +times+ "also: <font color= #ffffff ><b>" + Time + "</b></font> day </font></li>");
End-->
</script>
Countdown Three
<script language= "javascript" type= "Text/javascript" >
var interval = 1000;
Function Showcountdown (year, month, day, Divname) {
var now = new Date ();
var enddate = new Date (year, Month-1, day, 14, 07);
var lefttime = Enddate.gettime ()-now.gettime ();
var leftsecond = parseint (lefttime/1000);
var day1 = Math.floor (Leftsecond/(60 * 60 * 24));
var hour1 = Math.floor (leftsecond-day1 * 24 * 60 * 60)/3600);
var hour = Math.floor (leftsecond-60 * 60)/3600);
If the hour is a negative number show 0
if (Hour > 0) {
}
else {
hour = 0;
}
if (Day1 < 0) {
hour = Hour1
}
var minute = Math.floor (leftsecond-day1 * 60-HOUR1 * 3600)/60);
var second = Math.floor (leftsecond-day1 * * 60-HOUR1 * 3600-minute * 60);
var cc = document.getElementById (divname);
Displays 0 if the end time is negative
if (Lefttime > 0) {
Cc.innerhtml = Hour + "Hour" + Minute + "min" + second + "seconds";
If the year is displayed uncomment
cc.innerhtml = "Distance" + year + "years" + month + "Month" + Day + "Days also:" + hour + "hours" + Minute + "min" + second + "seconds";
}
else {
cc.innerhtml = 0 + "Hour" + 0 + "min" + 0 + "seconds";
}
}
ShowData is the div ID 2010,8,10 indicates that the mean parameter is set according to its own requirements.
Window.setinterval (function () {Showcountdown (8, ' ShowData ');}, Interval);
</script>
Where do you want to show the countdown
<div id= "ShowData" >
</div>