Jump to content

Php Variable Exchange With Js


killay
 Share

Recommended Posts

hey all,I'm trying to make a timer count down on a php vaibles time, i know its possible, but not quite shore exactly how, the php timer its self, is:

	  <strong> Crime: </strong>	  <?php if ($fetch->lastcrime <= time()){ echo "<a href=crime.php><font color=Red><b> Ready </b></font></a>"; }else{ echo "<font color=Blue><b> ".maketime($fetch->lastcrime)."</b></font>"; } ?>

This is the timer i wish to use:

<script language="JavaScript">TargetDate = "12/31/2020 5:00 AM";BackColor = "palegreen";ForeColor = "navy";CountActive = true;CountStepper = -1;LeadingZero = true;DisplayFormat = "%%D%% Days, %%H%% Hours, %%M%% Minutes, %%S%% Seconds.";FinishMessage = "It is finally here!";</script><script language="JavaScript" src="http://scripts.hashemian.com/js/countdown.js"></script>

This is for a text based mafia script, and its quite important that the timer can count down, without the page needing to refresh, Can anyone help? :)regardsPeter

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...