mcmuney Posted April 5, 2007 Share Posted April 5, 2007 I'm basically looking for an equavalent script of the php script below. The php works, but apparently it ONLY utilizes the server time and I need to utilize the time based on user location and I understand that can only be done with javascript: <?php $h = date('G'); if ($h <= 10 || $h >= 18) { //if $h is under or the same as 10 or $h is over or the same as 18 do... A(); }else { B(); } ?> Quote Link to comment Share on other sites More sharing options...
AndyB Posted April 5, 2007 Share Posted April 5, 2007 http://www.tizag.com/javascriptT/javascriptdate.php will get you started. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.