Computing.Net > Forums > Web Development > I need a very special script

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

I need a very special script

Reply to Message Icon

Name: SA-OSAMA
Date: April 5, 2004 at 04:37:37 Pacific
OS: WINXP
CPU/Ram: 2.4GHZ/256DDR RAM
Comment:

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 me

Fozzi




Sponsored Link
Ads by Google

Response Number 1
Name: wiredsj
Date: April 5, 2004 at 05:46:00 Pacific
Reply:

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


0

Response Number 2
Name: SA-OSAMA
Date: April 5, 2004 at 06:02:26 Pacific
Reply:

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


0

Response Number 3
Name: wiredsj
Date: April 5, 2004 at 10:11:31 Pacific
Reply:

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.html

Good luck.


ciao,
wired


0

Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More


Personal Server ASP Password Protection



Post Locked

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


Go to Web Development Forum Home


Sponsored links

Ads by Google


Results for: I need a very special script

i need a couple scripts www.computing.net/answers/webdevel/i-need-a-couple-scripts/718.html

I Need help on Embedding HTML ... www.computing.net/answers/webdevel/i-need-help-on-embedding-html-/889.html

Need a free horizontal menu www.computing.net/answers/webdevel/need-a-free-horizontal-menu/432.html