The forum of the forums
Would you like to react to this message? Create an account in a few clicks or log in to continue.

countdown

2 posters

Go down

countdown - countdown Empty countdown

Post by Cool-processor March 26th 2010, 8:37 pm

how can i make that?

thanks
Cool-processor
Cool-processor
Forumember

Male Posts : 724
Reputation : -55
Language : HTML | CSS/3 | JQuery
Location : To my own coding world

http://www.creative-labz.com

Back to top Go down

countdown - countdown Empty Re: countdown

Post by ***AFINA*** March 26th 2010, 9:50 pm

countdown of what?
***AFINA***
***AFINA***
Forumember

Female Posts : 450
Reputation : 28
Language : English, Russian, Ukrainian, Greek, Photoshop
Location : The whole world

Back to top Go down

countdown - countdown Empty Re: countdown

Post by Cool-processor March 26th 2010, 10:07 pm

A countdown you set.
For example.

5 years 4 months 3 days 56 seconds
Until AFINA becomes 30 years old!!

Understand?
Cool-processor
Cool-processor
Forumember

Male Posts : 724
Reputation : -55
Language : HTML | CSS/3 | JQuery
Location : To my own coding world

http://www.creative-labz.com

Back to top Go down

countdown - countdown Empty Re: countdown

Post by ***AFINA*** March 27th 2010, 9:13 am

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***
***AFINA***
Forumember

Female Posts : 450
Reputation : 28
Language : English, Russian, Ukrainian, Greek, Photoshop
Location : The whole world

Back to top Go down

Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum