Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> dynamiczne wczytywanie div
mario48
post
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
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: 19.09.2025 - 14:18