![]() |
![]() |
![]() ![]()
Post
#1
|
|
![]() Grupa: Zarejestrowani Postów: 55 Pomógł: 0 Dołączył: 8.10.2006 Ostrzeżenie: (0%) ![]() ![]() |
Witam,
Chciałbym odczytać dane z MySQL dla zmiennej var count1 = 6; Potem po zmianie wartości przez kliknięcie przycisku automatycznie uaktualnić wartość w bazie - nie bardzo wiem jak to ugryźć. ![]() Kod <script type="text/javascript">
var count1 = 6; function GON1() { if( count1 <= 24){var el = document.getElementById('GON1'); el.innerHTML = count1++ }} function GON12(){if( count1 >= 0){var el = document.getElementById('GON1'); el.innerHTML = count1--}} </script> <div style='position:absolute;margin: 30px 0 0 115px'> <a href="#" onClick="GON1()"><div class='buttonUp'></div></a></div> <div style='position:absolute;margin: 45px 0 0 120px'> <h2> <p id="GON1"><? echo $count1; ?></p> </h2></div> <div style='position:absolute;margin: 105px 0 0 115px'> <a href="#" onClick="GON12()"><div class='buttonDown'></div></a></div> Ten post edytował globalinfo 7.03.2017, 20:42:03 |
|
|
![]() ![]() |
![]() |
Wersja Lo-Fi | Aktualny czas: 18.07.2025 - 01:40 |