| --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> |
|
|
|
| -Gość- |
Post
#3
|
|
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> AKURAT TUTAJ JUŻ PRZERZUCIŁEM DO <head> ale to nie zmienia nic. |
|
|
|
-chaos- [PHP][JavaScript]Nie ładuje skryptu js 6.08.2012, 15:12:20
nospor 1) A wgrałeś właściwe pliki js tam gdzie trzeba?
2... 6.08.2012, 15:28:52
-chaos- wszystkie pliki js znajdują się w katalogu js.
ści... 6.08.2012, 20:52:02
abort nosporo zapewne myślał o inkludowaniu postaci ... 6.08.2012, 21:06:45
-chaos- acces_log
[my ip] - - [06/Aug/2012:23:37:07 +0200... 6.08.2012, 22:51:41
abort No i się wyjaśniło. Mnóstwo errorów 404, czyli pli... 6.08.2012, 22:59:10
abort Nie rozumiesz.
div, head, body - to jest język opi... 6.08.2012, 23:31:13
d3ut3r Żeby uniknąć problemów ze ścieżkami, względnymi na... 6.08.2012, 23:40:20
Gość Bałagan w plikach to fakt. Zacząłem przepisywać st... 7.08.2012, 00:25:33 ![]() ![]() |
|
Aktualny czas: 27.12.2025 - 14:03 |