Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> js w php
trucksweb
post
Post #1





Grupa: Zarejestrowani
Postów: 1 199
Pomógł: 31
Dołączył: 22.03.2004
Skąd: Warszawa

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


MAM JPORTALA I CHCE POD logiem umiescic skrypt java. oto kod calosci:

  1. <?php
  2. # poczatek strony (do bannera)
  3. # =======================
  4.  
  5.  
  6. function header_open() {
  7.  
  8. global $color;
  9.  
  10.  
  11. echo '
  12. <script language=JavaScript type=text/javascript>
  13. <!-- Begin
  14. function displayWindow(url, width, height){
  15. var Win = window.open(url,\"displayWindow\",'width=' + width + ',height=' + height + ',resizable=yes,scrollbars=yes,menubar=no' );
  16. }
  17. function addPanel()
  18. {
  19. if ((typeof window.sidebar == \"object\") && (typeof window.sidebar.addPanel == \"function\"))
  20. window.sidebar.addPanel(\"News - Szukaj\",\"javascript:void(open('search.phtml?dzial=','_search'))\",\"\");
  21. }
  22. // End -->
  23. </SCRIPT>
  24.  
  25. <META content=\"Microsoft FrontPage 4.0\" name=GENERATOR>
  26. </head>
  27.  
  28. <body>
  29. <div align=\"center\">
  30. <table border=\"0\" cellspacing=\"0\" cellpadding=\"0\" height=\"205\" width=\"765\">
  31.  <tr>
  32. <td width=\"763\" colspan=\"3\" height=\"201\">
  33. <p align=\"center\"><img src=\"logo.jpg\" width=\"763\" height=\"199\" ></p>
  34. </td>
  35.  </tr>
  36.  <tr>
  37.  <td width=\"197\" align=\"center\" height=\"4\"> <embed width=\"138\" height=\"31\" src=\"http://members.lycos.co.uk/truckswebb/paliwa.swf\"></td>
  38.  <td width=\"203\" align=\"center\" height=\"4\"> <IFRAME
  39. src=\"start_pliki/scroller.htm\" frameBorder=0 width=\"100%\"
  40. scrolling=no height=60></IFRAME><BR> </td>
  41.  <td width=\"363\" align=\"center\" height=\"4\"><embed width=\"320\" height=\"40\" src=\"kierowca.swf\" align=\"left\"> </td>
  42.  </tr>
  43.  </table>
  44. </div>
  45.  
  46.  
  47.  
  48.  
  49.  
  50.  
  51.  
  52.  
  53.  
  54.  
  55. ';
  56.  
  57. ............
  58. }
  59. ?>

jednak gdy tak wkleje wyskakuje blad:
Cytat
Parse error: parse error in /data/members/free/tripod/uk/t/r/u/trucksweb/htdocs/theme/white2/functions.inc.php on line 28

Fatal error: Call to undefined function: header_open() in /data/members/free/tripod/uk/t/r/u/trucksweb/htdocs/theme/white2/index.php on line 62


jak polaczyc js z php???ktos wie?(IMG:http://forum.php.pl/style_emoticons/default/questionmark.gif) (IMG:http://forum.php.pl/style_emoticons/default/ohmy.gif) :roll2:
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: 23.08.2025 - 16:13