Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> [JavaScript][PHP]wyswietlenie daty
Ruch Radzionków
post
Post #1





Grupa: Zarejestrowani
Postów: 311
Pomógł: 25
Dołączył: 29.08.2011

Ostrzeżenie: (0%)
-----


witam mam taki kod:
  1. <script type="text/javascript">
  2. $(document).ready(function() {
  3.  
  4. $("#time").countdown({
  5. date: "<?php '.$data.' ?>",
  6. onChange: function( event, timer ){
  7.  
  8. /*
  9. Tips:
  10.  
  11. event.target is DOM Element
  12. this is DOM element
  13. $(this) is jQuery Element
  14. timer is interval for countdown
  15.  
  16. If a countdown should end early you could do:
  17.  
  18. clearInterval( timer );
  19. $(this).trigger('complete');
  20. */
  21.  
  22. },
  23. onComplete: function( event ){
  24.  
  25. $(this).html("Completed");
  26. },
  27. leadingZero: true
  28. });
  29.  
  30. });
  31. </script>
  32. </head>
  33. <body>
  34. <div id="container">
  35. <h1>Date Countdown jQuery Plugin</h1><br />
  36.  
  37. <?php
  38. $data = '2011-09-05 22:15:00';
  39. ?>
  40. <p id="time" class="time"></p>

i mam pytanie jak mogę zrobic żeby w date: "<?php '.$data.' ?>", pokazywało tą date 2011-09-05 22:15:00
Go to the top of the page
+Quote Post

Posty w temacie


Reply to this topicStart new topic
2 Użytkowników czyta ten temat (2 Gości i 0 Anonimowych użytkowników)
0 Zarejestrowanych:

 



RSS Aktualny czas: 15.09.2025 - 07:09