mysql - PHP/Javascript countdown script -


Note * I need something that fixes it and me Tell me how they did not make tips about doing this, or coments *

About PPND Java, I have a countdown The script is working, but when it hits the target date, the timer stays going on negative times. I want to stop the date of that goal and just want to display a refinement message. This is live on my site. I need help editing the countdown script.

I want to have the same layout. I need some help in adding a finishing message and preventing it from going on a negative date, or 0days, 0 hours, 0 minutes until it is officially released on the site. Can not be displayed for 0 seconds. When this is the last, I want to display this message.

Countdown script

  & lt; Php date_default_timezone_set ('EST'); ? & Gt; & Lt ;? Php // Set your target date here $ targetYear = 2011; $ TargetMonth = 9; $ TargetDay = 1; $ Targeth = 20; $ TargetMinute = 00; $ Target seconds = 00; // Last Goal Date Definition // Defined Date Format $ dateFormat = "Wi-M-DH: I: S"; $ TargetDate = Mk Time ($ target target, $ target target, $ target second, $ target month, $ target day, $ target year); $ Actual data = time (); $ Sec def = $ target date - $ actual date; $ Balance = floor ($ SECOND DIFF / 60/60/24); $ Balance = floor (($ sec df - ($ balance day * 60 * 60 * 24)) / 60/60); $ Remaining minutes = floor (($ sec def - ($ balance day * 60 * 60 * 24) - $ ($ balance * 60 * 60) / 60) $ balance remaining = floor (($ sec df - ($ balance day) $ 60 * 60 * 24) - ($ Balance = 60 * 60) - $ $ (60 minutes remaining); $ TargetDateDisplay = Date ($ date format, $ targetDate); $ actual data display = date ($ date format, $ True date);? & Gt; script type = "text / javascript" & gt; Var day = & lt ;? php echo $ balance day;? & Gt; Var hours = & php = $ phon echo $ Remaining?; & Gt; Var minutes = & lt ;? Php $ Finish $ Finish;? & Gt; Var Seconds = & lt ;? Php $ Balance $ Balance?; & Gt; & Lt; / script & gt; body onload = "setCountDown ();" & gt; & lt; center & gt; & lt ;? php echo "$ balance day day, $ balancehum hour, $ min remaining minute   

How to add it to the site

   

Code> & lt; script type = "text / javascript" & gt; $ (function ()} / / Union War * / $ ("# countdown2") .load ("http://imperialism.zxq.net/includes /process/uwcountdown.php "); Set interval (function () {$ ("# count2") .load ("http://imperialism.zxq.net/includes/process/uwcountdown.php");}, 1000);}); & Lt; / Script & gt; & Lt; Div id = "uwCD" square = "uwCD" & gt; & Lt; Div id = "countdown 2" & gt; & Lt; / Div & gt; & Lt; / Div & gt;

  if ($ targetDate! = $ Actual date & $ targetDate & Gt; $ actual day) {echo "remaining $ daydays, remaining $ remaining hours, $ remaining minutes and minutes remaining minutes"; } Else {resonant "0 days, 0 hours, 0 minutes and 0 seconds"; }    

Comments

Popular posts from this blog

mysql - BLOB/TEXT column 'value' used in key specification without a key length -

c# - Using Vici cool Storage with monodroid -

python - referencing a variable in another function? -