otwiera to okienko i z tym nie mam problemu. Za pomocą linka wszystko ładnie się ładuje. ale chcę żeby otwierało się ono automatycznie. więc otworzyłem plik subheader.php w którym wcześniej umieściłem funkcję JS i dodałem do <body> onLoad='loadToolbar()' problem jest taki że to nie działa. Patrząc w źródło w Fire Foxie stwierdziłem że wszystko wstawiłem w porządku jest funkcja i onLoad. ale okienko sie nie otwiera. Jak by tego było mało otwiera się kiedy włączę panel administracyjny. ale nie na żadnej innej podstronie.
<script language="Javascript"> <!-- function loadToolbar(){ window.open('http://drake.ovh.org/stream.html','MMB','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizab e=no,width=150,height=50'); } // --> </script> <?php // javascript part for Dropdown windows. Works with FireFox, IE, NETSCAPE. echo "<script LANGUAGE=\"javascript\"> function show_hide(msg_id){ msg_id.style.display=msg_id.style.display=='none' ? '' : 'none' } </SCRIPT>"; /*---------------------------------------------------+ | PHP-Fusion 6 Content Management System +----------------------------------------------------+ | Copyright ę 2002 - 2005 Nick Jones | <a href=\"http://www.php-fusion.co.uk/\" target=\"_blank\">http://www.php-fusion.co.uk/</a> +----------------------------------------------------+ | Released under the terms & conditions of v2 of the | GNU General Public License. For details refer to | the included gpl.txt file or visit <a href=\"http://gnu.org\" target=\"_blank\">http://gnu.org</a> +----------------------------------------------------*/ require_once THEME."theme.php"; require_once INCLUDES."theme_functions_include.php"; if ($settings['maintenance'] == "1" && !iADMIN) fallback(BASEDIR."maintenance.php"); if (iMEMBER) $result = dbquery("UPDATE ".$db_prefix."users SET user_lastvisit='".time()."', user_ip='".USER_IP."' WHERE user_id='".$userdata['user_id']."'"); echo "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\"> <html> <head>"; include_once INCLUDES."dynamic_titles.php"; if($userdata['aup_lang'] == "Polish"){ }else{ } <meta name='keywords' content='".$settings['keywords']."'> <link rel='stylesheet' href='".THEME."styles.css' type='text/css'> <link rel='stylesheet' href='".INCLUDES."styles.css' type='text/css'> <script type='text/javascript' src='".INCLUDES."jscript.js'></script> <script type='text/javascript' src='".INCLUDES."png-hack.js'></script> <!--[if gte IE 5.5000]> <script language='javascript'> window.attachEvent(\"onload\", correctPNG); </script> <![endif]--> <style type='text/css'> #dhtmltooltip{ position: absolute; width: 150px; border: 0px solid black; padding: 2px; visibility: hidden; z-index: 100; }</style>"; if ($settings['rss']) { $rss = dbarray(dbquery("SELECT file_news,title_news from ".$db_prefix."rss_builder")); $rss_title_news=$rss['title_news']; $rss_file_news=$rss['file_news']; if ($rss_file_news!="") { echo "<link rel='alternate' type='application/rss+xml' title='".$rss_title_news."' href='".$settings['siteurl'].$rss['file_news']."' />"; } } echo" </head> <body bgcolor='$body_bg' text='$body_text' onLoad='loadToolbar()'> <div id=\"dhtmltooltip\"></div> <script type=\"text/javascript\" src='".INCLUDES."dhtmltooltip.js'></script>\n"; render_header("<img src='".BASEDIR.$settings['sitebanner']."' alt='".$settings['sitename']."' title='".$settings['sitename']."'>"); ?>