![]() |
![]() |
--chaos-- |
![]()
Post
#1
|
Goście ![]() |
http://vlep.pl/v8ghot.jpg
Robie tak jak pokazane na obrazku. I galeria nie działa. Kombinacji było multi. Nie wiem co zrobić. |
|
|
![]() |
--chaos-- |
![]()
Post
#2
|
Goście ![]() |
TAK WYGLADA KOD ZRODLOWY:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>Untitled Document</title> <link href="css/style.css" rel="stylesheet" type="text/css" /> </head> <body> <div id="container"> <script src="js/mapa.js"></script> <script src="http://maps.google.com/maps/api/js?sensor=false" type="text/javascript"></script> <script src="/js/mootools-core.js"></script> <script src="/js/mootools-more.js"></script> <script src="/js/milkbox-yc.js"></script> <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.5.1/jquery.min.js"></script> <script src="js/slides.min.jquery.js"></script> <script src="js/sliders.js"></script> <div id="header"> <a href="index.php?go=start"><div id="home"></div></a> </div><!--end header--> <div id="box"> <table id="gallery"> <tr> <td> <a href="image/01.jpg" data-milkbox="milkbox:g1" title="Lorem ipsum..."> <img src="image/01.jpg" alt="dada" width="200" height="200" /></a> </td> <td> <a href="image/02.jpg" data-milkbox="milkbox:g1" title="Lorem ipsum..."> <img src="image/02.jpg" alt="" width="200" height="200" /></a> </td> <td> <a href="image/03.jpg" data-milkbox="milkbox:g1" title="Lorem ipsum..."> <img src="image/03.jpg" alt="" width="200" height="200" /></a> </td> <td> <a href="image/04.jpg" data-milkbox="milkbox:g1" title="Lorem ipsum..."> <img src="image/04.jpg" alt="" width="200" height="200" /></a> </td> </tr> </table> </div><!-- /box --> </div><!--end container--> <div id="footer"></div><!--end footer--> </body> </html> Zwróć uwagę żę wszystkie linki do skryptów są w div container, miast w <head></. Moze to jest przyczyna? Ale tak jest bo inkluduję header.php w pliku index.php w <div conainer>, patrz: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>Untitled Document</title> <link href="css/style.css" rel="stylesheet" type="text/css" /> <?php include('include/header.php');?> </head> <body> <div id="container"> <?php include('include/navigation.php');?> <?php include('include/subMenu.php');?> <div id="content"> <?php // zmienna $go przekazana metoda GET $go = $_GET['go']; // sprawdzamy czy zmienna $go nie jest pusta if(!empty($go)) { // sprawdzamy czy plik o danej nazwie istnieje if(is_file("pages/$go.html")) include "pages/$go.html"; // jezeli plik nie istnieje wyswietla się komunikat else echo "<br />Nie ma takiej strony :-("; } // jezeli zmienna $go jest pusta wyswietla się strona glowna else include "pages/about.html"; ?> </div><!--end content--> </div><!--end container--> <?php include('include/footer.php');?> </body> </html> |
|
|
![]() ![]() |
![]() |
Aktualny czas: 14.10.2025 - 13:09 |