Pomoc - Szukaj - Użytkownicy - Kalendarz
Pełna wersja: [HTML][PHP]Wstawienie Panelu
Forum PHP.pl > Forum > Przedszkole
patryk22
Witam... Mam oto plik układu strony HTML:

  1. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
  2. <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  3.  
  4. <link rel="Stylesheet" type="text/css" href="style.css" />
  5.  
  6. </head>
  7.  
  8. <div id="top">Nagłówek serwisu</div>
  9.  
  10. <div id="background">
  11. <div id="middle">
  12. <div id="content">
  13. Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.
  14. </div>
  15. </div>
  16.  
  17. <div id="right">Contrary to popular belief, Lorem Ipsum is not simply random text.Contrary to popular belief, Lorem Ipsum is not simply random text.Contrary to popular belief, Lorem Ipsum is not simply random text.Contrary to popular belief, Lorem Ipsum is not simply random text.</div>
  18.  
  19. <div class="clear"></div>
  20. </div>
  21.  
  22. <div id="footer">Stopka serwisu</div>
  23. </body>
  24. </html>


Chcę do niego dodać skrypt php, zawierający elementy JavaScript... Chcę go dodać do diva right...

  1. <div style="width:300px;"><script>
  2. function pokazdiv(el) {
  3. for(var i=1; i<=2; i++) {
  4. if(el == i) {
  5. document.getElementById(el).style.display = "block";}
  6. else{document.getElementById(i).style.display = "none"
  7. ;}}}
  8. </script>
  9. <center><a href="java script:void(0);" onclick="pokazdiv('1');">Następny mecz</a> | <a href="java script:void(0);" onclick="pokazdiv('2');">Poprzedni mecz</a></center>
  10. <div id="1">
  11. treść następnego meczu
  12. treść następnego meczu
  13. treść następnego meczu
  14. <br>
  15. </div>
  16. <div id="2" style="display:none;">
  17. treść poprzedniego meczu<br>
  18. treść poprzedniego meczu<br>
  19. treść poprzedniego meczu<br>
  20. </div>
  21. </div>


Zmieniam rozszerzenie na php i próbuje funkcji include.. Nic z tego.. Sam skrypt działa poprawnie..
Jeśli się przyda: style.css

  1. #top {
  2. height: 80px;
  3. background: #d4f393
  4. }
  5.  
  6. #footer {
  7. background: #bdf884;
  8. height: 60px;
  9. clear:both
  10. }
  11.  
  12. #right {
  13. float: right;
  14. width: 300px;
  15. background: #cfc4a9
  16. }
  17.  
  18. #middle {
  19. float: left;
  20. width: 100%;
  21. margin-right: -300px;
  22. }
  23.  
  24. #content {
  25. margin-right: 300px;
  26. background: #e7e2d5
  27. }
  28.  
  29. #background {
  30. background: #e7e2d5 url(right.png) right repeat-y;
  31. }
  32.  
  33. .clear {
  34. clear: both
  35. }


Co zrobić.. ?

NIE AKTUALNE !
arminus
Moze bys sie podzielil z innymi jak rozwiazales problem?
patryk22
Cytat(arminus @ 21.02.2012, 00:51:21 ) *
Moze bys sie podzielil z innymi jak rozwiazales problem?


Była to wina serwera...
To jest wersja lo-fi głównej zawartości. Aby zobaczyć pełną wersję z większą zawartością, obrazkami i formatowaniem proszę kliknij tutaj.
Invision Power Board © 2001-2025 Invision Power Services, Inc.