ugrás a tartalomhoz

java visszaszámoló óra

lomajpurre · 2007. Dec. 28. (P), 21.31
Sziasztok!
Lenne egy kérdésem:
Az indexembe beillesztettem egy javascriptet:
  1. function load() {  
  2.     countdown('1'"December 31, 2007 00:00:00", 0, '');  
  3.     }  
  4. </script>  
  5. <style type="text/css">  
  6. <!--  
  7. .box {  
  8.     border: 2px solid #000000;  
  9.     background-color: #2e2c37;  
  10.     background-position: center;  
  11.     margin-left: auto;  
  12.     margin-right: auto;  
  13.     color: #e7e7e7;  
  14. }  
  1. <?  
  2. // Bizzar PHP GD Countdown Script  
  3. // Written by: Brad Derstine (Brad##kukac##BizzarScripts.net)  
  4.   
  5. $month = 12; // Month of the countdown  
  6. $day = 31; // Day of the countdown  
  7. $year = 2007; // Year of the countdown  
  8.   
  9. // mktime is the marked time, and time() is the current time.  
  10. $target = mktime(0,0,0,$month,$day,$year);  
  11. $diff = $target - time();  
  12.   
  13. $days = ($diff - ($diff % 86400)) / 86400;  
  14. $diff = $diff - ($days * 86400);  
  15. $hours = ($diff - ($diff % 3600)) / 3600;  
  16. $diff = $diff - ($hours * 3600);  
  17. $minutes = ($diff - ($diff % 60)) / 60;  
  18. $diff = $diff - ($minutes * 60);  
  19. $seconds = ($diff - ($diff % 1)) / 1;  
  20.   
  21. header ("Content-type: image/png");  
  22. $imgname = "hl2countdown.png";  
  23. $im = @imagecreatefrompng ($imgname);  
  24.   
  25. //Here are some common color codes in case you want to change the colors.  
  26. //$white = imagecolorallocate ($im, 255, 255, 255);  
  27. //$blue = imagecolorallocate ($im, 0, 0, 255);  
  28. //$black = imagecolorallocate ($im,0,0,0);  
  29. //$gray = imagecolorallocate ($im,153,153,153);  
  30. //$red = imagecolorallocate ($im,255,0,0);  
  31. //$orange = imagecolorallocate ($im, 255, 127, 36);  
  32.   
  33. $background_color = imagecolorallocate ($im, 0, 0, 0);  
  34. $orange = imagecolorallocate ($im, 255, 127, 36);  
  35. $yellow = imagecolorallocate ($im, 247, 246, 201);  
  36. imagestring ($im, 2, 60, 5,  " Countdown to Half Life 2 Release:     Available from www.hl2empire.com", $yellow);  
  37. imagestring ($im, 3, 65, 18,  "[ $days day(s) ] [ $hours hour(s) ] [ $minutes minute(s) ] [ $seconds second(s) ]", $orange);  
  38. imagepng ($im);  
  39. imagedestroy ($im);  
  40. ?>  
A kérdésem az hogy az óra visszaszámlálásnál a szerver idejét vesz figyelembe vagy a felhasználóét, aki megnyitja az oldalt?
A válaszokat előre is köszönöm.
 
1

próbáld ki

nobzol · 2007. Dec. 28. (P), 22.17
állítsd át az órát a számítógépeden és máris kiderül