![]() |
![]() |
![]()
Post
#1
|
|
Grupa: Zarejestrowani Postów: 2 Pomógł: 0 Dołączył: 13.04.2013 Ostrzeżenie: (0%) ![]() ![]() |
Witam, mam taki oto kod:
CODE <div id="menu" style="POSITION: relative;z-index: 4; top:-40px;"> <a href="index.php?go=1"><img src="Przyciski/Glowna.png" width="150px" border="0" onmouseover="this.src = 'Przyciski/Glowna1.png'" onmouseout="this.src = 'Przyciski/Glowna.png'"/></a> <a href="index.php?go=2"><img src="Przyciski/Prezenterzy.png" width="150px" border="0" onmouseover="this.src = 'Przyciski/Prezenterzy1.png'" onmouseout="this.src = 'Przyciski/Prezenterzy.png'"/></a> <a href="index.php?go=3"><img src="Przyciski/Ramowka.png" width="150px" border="0" onmouseover="this.src = 'Przyciski/Ramowka1.png'" onmouseout="this.src = 'Przyciski/Ramowka.png'"/></a> <a href="index.php?go=4"><img src="Przyciski/Ksiega.png" width="150px" border="0" onmouseover="this.src = 'Przyciski/Ksiega1.png'" onmouseout="this.src = 'Przyciski/Ksiega.png'"/></a> <a href="index.php?go=5"><img src="Przyciski/Lista.png" width="150px" border="0" onmouseover="this.src = 'Przyciski/Lista1.png'" onmouseout="this.src = 'Przyciski/Lista.png'"/></a> <a href="index.php?go=6"><img src="Przyciski/Rekrutacja.png" width="150px" border="0" onmouseover="this.src = 'Przyciski/Rekrutacja1.png'" onmouseout="this.src = 'Przyciski/Rekrutacja.png'"/></a> <a href="index.php?go=7"><img src="Przyciski/Regulamin.png" width="150px" border="0" onmouseover="this.src = 'Przyciski/Regulamin1.png'" onmouseout="this.src = 'Przyciski/Regulamin.png'"/></a> </div> <div class="tresc"> <? switch($_GET['go']) { default: include("glowna.php"); break; case 1: include("glowna.php"); break; case 2: include("prezenterzy.php"); break; case 3: include("ramowka.php"); break; case 4: include("ksiega.php"); break; case 5: include("lista.php"); break; case 6: include("rekrutacja.php"); break; case 7: include("regulamin.php"); break; } ?> </div> i moje pytanie brzmi: czemu za kazdym razem laduje sie cala strona, a nie tylko ten jeden konkretny div o nazwie tresc?? Oczywiscie ta cala tresc jest w body Ten post edytował mario48 13.04.2013, 13:22:49 |
|
|
![]() |
![]()
Post
#2
|
|
Grupa: Zarejestrowani Postów: 4 298 Pomógł: 447 Dołączył: 16.11.2006 Ostrzeżenie: (0%) ![]() ![]() |
Ponieważ robisz to poprzez PHP, jak chcesz wczytać "dynamicznie" użyj ajax. http://api.jquery.com/jQuery.ajax/
Ten post edytował !*! 13.04.2013, 13:35:35 |
|
|
![]()
Post
#3
|
|
Grupa: Zarejestrowani Postów: 2 Pomógł: 0 Dołączył: 13.04.2013 Ostrzeżenie: (0%) ![]() ![]() |
No dobbrze, a to jak zrobić aby java script dzialala u wszystkich?? i na wszystkich przegladarkach??
|
|
|
![]()
Post
#4
|
|
Grupa: Zarejestrowani Postów: 4 298 Pomógł: 447 Dołączył: 16.11.2006 Ostrzeżenie: (0%) ![]() ![]() |
Nie rozumiem. Przecież działa na wszystkich, chyba że ktoś wyłączy.
|
|
|
![]() ![]() |
![]() |
Aktualny czas: 22.08.2025 - 23:38 |