Jump to content

Php Variable Exchange With Js


killay

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...