Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> oddzielić skrypt od reszty strony
siestrzemcewiczo...
post 30.03.2008, 22:41:24
Post #1





Grupa: Zarejestrowani
Postów: 67
Pomógł: 0
Dołączył: 26.08.2005

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


Witam
includuje plik na strone główną w której jest skrypt który wyswietla dymek po najechaniu na link

problem jest taki ze plik includowany wpływa na wygląd całej strony otóż chciałem sie dowiedziec jak mozna go odzielic zeby nie działal z innymi linkami kombinowałem z iframe ale to chyba nie jest mądre rozwiązanie...

chciałbym aby dymek pokazywal sie tylko w pliku includowanym a nie wdzedzie gdzie jest link...




  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  2. <html xmlns="http://www.w3.org/1999/xhtml">
  3. <!-- DW6 -->
  4. <head>
  5. <!-- Copyright 2005 Macromedia, Inc. All rights reserved. -->
  6. <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
  7. <!-- TemplateBeginEditable name="doctitle" -->
  8. <title>Dokument bez nazwy</title>
  9. <!-- TemplateEndEditable -->
  10. <link rel="stylesheet" href="2col_leftNav.css" type="text/css" />
  11. <!-- TemplateBeginEditable name="head" --><!-- TemplateEndEditable -->
  12. </head>
  13. <!-- The structure of this file is exactly the same as 2col_rightNav.html;
  14.  the only difference between the two is the stylesheet they use -->
  15. <body>
  16. <div id="masthead">
  17. <h1 id="siteName">Rofererek</h1>
  18.  <div id="globalNav"> <a href="#">Strona gł&oacute;wna </a>| <a href="#">pomysły</a> | <a href="#">filmy</a> | <a href="#">zdjęcia</a> 
  19. | <a href="#">BRAMKA SMS </a> | <a href="#">projekty</a> |</div>
  20. </div>
  21. <!-- end masthead -->
  22. <div id="content">
  23. <div id="breadCrumb"> <a href="#">katalog</a> / <a href="#">serwer ftp </a> / <a href="#">
  24. pliki strony </a>/ </div>
  25. <h2 id="pageName">Rofererek website </h2>
  26. <div class="feature"> 
  27. <?
  28. //komenda usuwa wyświetlanie błędów php
  29.  
  30.  
  31. $go=$_GET["go"]; /* to działa tylko i
  32. wyłącznie, gdy pliki podłączane są z katalogu "teksty" i mają rozszerzenie *.txt */ if(!isset($go)) { include("teksty/go.txt"); } else { if(is_file("teksty/$go.txt")) { include("teksty/$go.txt"); } else echo "Strona w trakcie budowy"; } ?>
  33.  
  34.  
  35. <?php include("http://www.wp.pl"); ?>
  36.  
  37.  
  38.  
  39. <h3>Przyszły tytuł</h3>
  40. </div>
  41. <div class="story">
  42. <h3>&nbsp;</h3>
  43. </div>
  44. <div class="story">
  45. <h3>&nbsp;</h3>
  46. </div>
  47. </div>
  48. <!--end content -->
  49. <div id="navBar">
  50. <div id="search">
  51. <form action="#">
  52. <label>wyszukiwanie</label>
  53. <input name="searchFor" type="text" size="10" />
  54. <input name="goButton" type="submit" value="szukaj" />
  55. </form>
  56. </div>
  57. <div id="sectionLinks">
  58. <h3>Łącza podstron </h3>
  59. <ul>
  60. <li><a href="#">Projekty</a></li>
  61. <li><a href="#">Moje filmy </a></li>
  62. <li><a href="#">Wykonane strony </a></li>
  63. <li><a href="#">Retusz zdjęć </a></li>
  64. <li><a href="#">Mechanika</a></li>
  65. <li><a href="#">Rower</a></li>
  66. <li><a href="#">Mechanika</a></li>
  67. <li></li>
  68. <li></li>
  69. </ul>
  70. </div>
  71. <div class="relatedLinks">
  72.  
  73.  
  74. <h3>Kategoria skojarzonych łącz</h3>
  75. <ul>
  76. <li><a href="#">Ulubione radia </a></li>
  77. <li><a href="#">Arab</a></li>
  78. <li><a href="#">Gry flash </a></li>
  79. </ul>
  80. </div>
  81. <div id="advert"> 
  82.  
  83.  
  84. <?php include("include/nowe.php"); ?>
  85.  
  86.  
  87. </div>
  88. </div>
  89. <!--end navbar -->
  90. <div id="siteInfo"> <img src="" width="44" height="22" /><a href="#">O mnie </a> | 
  91. <a href="#">Mapa strony</a> | <a href="#">Polityka prywatności</a> | 
  92. <a href="#">Kontakt</a> | &copy;2008 Rofererek website </div>
  93. </div>
  94. <br />
  95.  
  96.  
  97.  
  98. </body>
  99. </html>



Odwiedź moją stronę


przy okazji ostatnio włamano mi sie na serwer i index zostal skasowany:(
Go to the top of the page
+Quote Post

Posty w temacie


Reply to this topicStart new topic
1 Użytkowników czyta ten temat (1 Gości i 0 Anonimowych użytkowników)
0 Zarejestrowanych:

 



RSS Wersja Lo-Fi Aktualny czas: 6.07.2025 - 10:44