<?php # poczatek strony (do bannera) # ======================= function header_open() { echo ' <script language=JavaScript type=text/javascript> <!-- Begin function displayWindow(url, width, height){ var Win = window.open(url,\"displayWindow\",'width=' + width + ',height=' + height + ',resizable=yes,scrollbars=yes,menubar=no' ); } function addPanel() { if ((typeof window.sidebar == \"object\") && (typeof window.sidebar.addPanel == \"function\")) window.sidebar.addPanel(\"News - Szukaj\",\"javascript:void(open('search.phtml?dzial=','_search'))\",\"\"); } // End --> </SCRIPT> <META content=\"Microsoft FrontPage 4.0\" name=GENERATOR> </head> <body> <div align=\"center\"> <table border=\"0\" cellspacing=\"0\" cellpadding=\"0\" height=\"205\" width=\"765\"> <tr> <td width=\"763\" colspan=\"3\" height=\"201\"> <p align=\"center\"><img src=\"logo.jpg\" width=\"763\" height=\"199\" ></p> </td> </tr> <tr> <td width=\"197\" align=\"center\" height=\"4\"> <embed width=\"138\" height=\"31\" src=\"http://members.lycos.co.uk/truckswebb/paliwa.swf\"></td> <td width=\"203\" align=\"center\" height=\"4\"> <IFRAME src=\"start_pliki/scroller.htm\" frameBorder=0 width=\"100%\" scrolling=no height=60></IFRAME><BR> </td> <td width=\"363\" align=\"center\" height=\"4\"><embed width=\"320\" height=\"40\" src=\"kierowca.swf\" align=\"left\"> </td> </tr> </table> </div> '; ............ } ?>
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
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?

