countdown
2 posters
Page 1 of 1
Re: countdown
countdown of what?
***AFINA***- Forumember
- Posts : 450
Reputation : 28
Language : English, Russian, Ukrainian, Greek, Photoshop
Location : The whole world
Re: countdown
A countdown you set.
For example.
5 years 4 months 3 days 56 seconds
Until AFINA becomes 30 years old!!
Understand?
For example.
5 years 4 months 3 days 56 seconds
Until AFINA becomes 30 years old!!
Understand?
Re: countdown
- Code:
<script LANGUAGE="JAVAscript">
today = new Date();
BigDay = new Date("January 1, 2011")
msPerDay = 24 * 60 * 60 * 1000 ;
timeLeft = (BigDay.getTime() - today.getTime());
e_daysLeft = timeLeft / msPerDay;
daysLeft = Math.floor(e_daysLeft);
e_hrsLeft = (e_daysLeft - daysLeft)*24;
hrsLeft = Math.floor(e_hrsLeft);
minsLeft = Math.floor((e_hrsLeft - hrsLeft)*60);
document.write( "till celebration<br> 2011 year<br>just <b>"+daysLeft+"</b> days, <b>"+hrsLeft+"</b> hours and <b>"+minsLeft+"</b> minutes <br/>Be ready!");
</script>
***AFINA***- Forumember
- Posts : 450
Reputation : 28
Language : English, Russian, Ukrainian, Greek, Photoshop
Location : The whole world
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum