Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> [PHP]Includowanie do odpowiedniego div'a
Kowalik
post
Post #1





Grupa: Zarejestrowani
Postów: 11
Pomógł: 0
Dołączył: 11.03.2009

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


Mam taki oto prosty kod...

Kod
<title>Untitled Document</title>
<style type="text/css">
<!--

#logo {
    position:absolute;
    width:963px;
    height:115px;
    background-color: #FF0000;
}
#main {
    position:absolute;
    width:810px;
    height:300px;
    top: 137px;
    left: 11px;
    background-color: #0000FF;
}
#menu {
    position:absolute;
    width:150px;
    height:300px;
    left: 822px;
    top: 137px;
    background-color: #FFFF00;
    margin:auto
}
#footer {
    position:absolute;
    width:960px;
    height:37px;
    top: 438px;
    left: 12px;
    background-color: #333333;
}

-->
</style>
</head>

<body>
<div id="logo"></div>
<div id="main"></div>
<div id="menu">
  <ul>
  <li><a href="index.php?strona=home">home</a></li>
  <li><a href="index.php?strona=o_mnie">o mnie</a></li>
  <li><a href="index.php?strona=kontakt">konakt</a></li>
</ul>
</div>
<div id="footer"></div>
</body>
</html>


Jakie mam wprowadzić zmiany aby po kliknięciu dajmy na to linku 'o mnie' zawartość pliku omnie.php ładowała się bezpośrednio do div'a 'main'?
Go to the top of the page
+Quote Post
 
Start new topic
Odpowiedzi
koreja
post
Post #2





Grupa: Zarejestrowani
Postów: 120
Pomógł: 22
Dołączył: 15.07.2008
Skąd: Raniżów/Rzeszów

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


  1. <?php
  2. if(empty($page)){
  3.    include "includesy/1.php";
  4. }
  5. ?>


Coś takiego?
Go to the top of the page
+Quote Post
Kowalik
post
Post #3





Grupa: Zarejestrowani
Postów: 11
Pomógł: 0
Dołączył: 11.03.2009

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


Cytat(koreja @ 15.03.2009, 19:18:36 ) *
  1. <?php
  2. if(empty($page)){
  3.    include "includesy/1.php";
  4. }
  5. ?>


Coś takiego?


Trochę zamotałem :| bo jeśli dobrze rozumiem ten fragment kodu przed Twoją zmianą odpowiada za 'pierwsze odpalenie' strony, czyli pierwszą treść która się wyświetli po wejściu na stronę. Mi chodzi o linki tylpu 'galeria' 'księga gości'...
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: 6.10.2025 - 14:37