Tom's Guide | Tom's Hardware | Tom's Games
![]() |
![]() |
![]() |
Guys I need a special code.That should be written in javascript or flash file.
The exact thing that i want is to display is the counter that shows
"85 Days Left" and "5100:00:00 Hours Left"...
Well displaying and starting countdown 5100 hours is quiet hard job at least for me.So any genius in the room who can help meFozzi

fozzi,
Here's a javascript i use for an irish pub to count down til St. Patick's day:
<script language="JavaScript">
today = new Date();
BigDay = new Date("March 17, 2005")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);
e_minLeft = (e_hrsLeft - hrsLeft)*60;
minsLeft = Math.floor((e_hrsLeft - hrsLeft)*60);
secLeft = Math.floor((e_minLeft - minsLeft)*60);
document.write( " "+daysLeft+" days, "+hrsLeft+" hours, "+minsLeft+" Minutes and "+secLeft+" Seconds" );
// -->
</script> til St. Patrick's Day!
ciao,
wired

Thank You Patrick but it is not showing right time!!! and I need a dynamic view instead of static.
What and how do i have to use?
Is it going to be JAVA APPLET? or anyother easy way in action scripts ???Fozzi

fozzi,
That one grabs the time form the server it's on so your server must be in a different time zone or if you're running it locally your clock must be off?
There is an applet at http://www.timeanddate.com/counters/tadmulticount.class
but i find it quite cumbersome. Might be ok with you though.There's some simpler ones at:
http://javaboutique.internet.com/utilities/time.htmlGood luck.
ciao,
wired

![]() |
Personal Server
|
ASP Password Protection
|

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.
| Ads by Google |