hi, just now i did another test, i still use the html_header.php from tpp, but i did some changes,then it seems everything goes well,
but i'm not sure if there's anything wrong i haven't found or any hidden trouble? or is there a better way? 
i changed these codes:
PHP Code:
$css_files_to_load[$value] = -300;
if (file_exists($perpagefile)) $css_files_to_load[trim($value, '/').'.css'] = -200;
$jscript_files_to_load[$value] = -400;
$jscript_files_to_load[$value] = -300;
$jscript_files_to_load[$value] = -200;
$jscript_files_to_load[$value] = -100;
to the following codes:
PHP Code:
echo '<link rel="stylesheet" type="text/css" href="' . $template->get_template_dir('.css',DIR_WS_TEMPLATE, $current_page_base,'css') . '/' . $value . '" />'."\n";
if (file_exists($perpagefile)) echo '<link rel="stylesheet" type="text/css" href="' . $perpagefile .'" />'."\n";
echo '<script type="text/javascript" src="' . $template->get_template_dir('.js',DIR_WS_TEMPLATE, $current_page_base,'jscript') . '/' . $value . '"></script>'."\n";
echo '<script type="text/javascript" src="' . $page_directory . '/' . $value . '"></script>' . "\n";
require($template->get_template_dir('.php',DIR_WS_TEMPLATE, $current_page_base,'jscript') . '/' . $value); echo "\n";
require($page_directory . '/' . $value); echo "\n";
Bookmarks