Results 1 to 5 of 5
-
9th Nov 2011, 01:49 AM #1OPBannedWebsite's:
CuraShare.Net CuraShare.Me CuraShare.InfoHELP: Java countdown
Hi,
I'm not familiar with JAVA so I'm hoping someone can help me with this. I need to have a countdown script that will display the amount of days/hours/minutes/seconds remaining. PHP will deliver a variable ($seconds) with the amount of seconds.
Thanks in advance.CuraHack Reviewed by CuraHack on . HELP: Java countdown Hi, I'm not familiar with JAVA so I'm hoping someone can help me with this. I need to have a countdown script that will display the amount of days/hours/minutes/seconds remaining. PHP will deliver a variable ($seconds) with the amount of seconds. Thanks in advance. Rating: 5
-
9th Nov 2011, 01:57 AM #2Member
You need code in Javascript or php ?
I have to check my skool note book..have done this in skool project
-
9th Nov 2011, 02:03 AM #3OPBannedWebsite's:
CuraShare.Net CuraShare.Me CuraShare.Infojavascript I suppose, it has to count down automatically. I found this, but I have no clue how to use it, can someone instruct me?
-
9th Nov 2011, 02:17 AM #4Member
Just read in shout box that you have css
copy this part into your css section of HTML
#txt {
border:none;
font-family:Arial; <=== you can change font style
font-size:20pt; <== change the font size watever size u want
font-weight:bold; <== bold italic watevre u choose
border-right-color:#FFFFFF <== color code
}
set 2..copy and paste this in your javascipt
Now...Copy this code in the head of your html page
<script type="text/javascript" src="countDown.js"></script>
</head>
copy this code into ur html body section
<form name="cd">
<input id="txt" readonly="true" type="text" value="10:00" border="0" name="disp">
</form>
This will alert user with pop up once timer end and if you give redirect path..it will take the user to your given link once they hit Ok button in pop up alert...you can omit that [part if you dunt need.
Hope this help..Let me know if any error occurs
P.S : The text after //<== .... is just for instruction ..if you can delete them when you paste in notepad
for ex : window.alert("Time is up. Press OK to continue."); // <== you can put ur timeout message as want but in the ()
Delete from this line : // <== you can put ur timeout message as want but in the ()
Make sure you upload your countdown.js file on ur host.
excuse me : I am not English native.
-
9th Nov 2011, 02:42 AM #5(╯?□?)╯︵ ┻━┻Website's:
Xenu.ws WarezLinkers.com SerialSurf.com CracksDirect.comYou can use JQuery and a plugin to do the countdown JS.
Pass the seconds in by PHP by putting it in the call, e.g.
Code:someDate.setSeconds(<?php echo $seconds; ?>);
See here:
http://jsfiddle.net/8UYZP/1/
Note: in this example, I assumed $seconds its how many seconds into the future. Though you probably mean it's a unix timestamp of a date in the future.
FYI the comment in the code says one hour ahead, but its actually one day, I changed it last minute.Projects:
WCDDL - The Professional DDL Script
Top Secret Project: In Development - ZOMG
ImgTrack - Never Have Dead Images Again!
Sponsored Links
Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Similar Threads
-
Countdown comments
By r00ts in forum WordpressReplies: 0Last Post: 29th Sep 2012, 10:47 AM -
Java stinks: Turn off your Java browser plugin
By Loget in forum General DiscussionReplies: 37Last Post: 5th Sep 2012, 07:40 AM -
Need Help HTML/Java Script Twitter/Countdown fixing
By Andy~s in forum Web Development AreaReplies: 0Last Post: 19th Dec 2010, 06:29 PM -
The Google Countdown
By Angeix in forum General DiscussionReplies: 9Last Post: 14th Dec 2009, 11:37 AM -
openSUSE 11.2 countdown (:
By Hyperz in forum General DiscussionReplies: 30Last Post: 19th Nov 2009, 12:08 AM
themaRegister - register to forums...
Version 3.54 released. Open older version (or...