Php Jquery progressbar未显示

Php Jquery progressbar未显示,php,jquery,progress-bar,Php,Jquery,Progress Bar,我在php文件中有jquery脚本: print "<link rel=\"stylesheet\" href=\"http://code.jquery.com/ui/1.10.3/themes/smoothness/jquery-ui.css\" /> <script s

我在php文件中有jquery脚本:

print "<link rel=\"stylesheet\" href=\"http://code.jquery.com/ui/1.10.3/themes/smoothness/jquery-ui.css\" />                                                                                                       
 <script src=\"http://code.jquery.com/ui/1.10.3/jquery-ui.js\"></script>                                                                                                                                          
<link rel=\"stylesheet\" href=\"/resources/demos/style.css\" />";


print "<script>                                                                                                                                                                                                  
 $(function() {                                                                                                                                                                                                   
 $( \"#p\" ).progressbar({ max: 10 });                                                                                                                                                                              
 $( \"#p\" ).progressbar({                                                                                                                                                                                          
 value:" . $_SESSION['pagenum'] . "});                                                                                                                                                                              
 $( '#p' ).progressbar( 'enable' );                                                                                                                                                                                 
 });                                                                                                                                                                                                            
 </script>";
打印”
";
“打印”
$(函数(){
$(\“\p\”).progressbar({max:10});
$(\“\p\”).progressbar({
值:“..$\u会话['pagenum']..”);
$('p').progressbar('enable');
});                                                                                                                                                                                                            
";
我有这样的html:

print "<div id = 'p'></div>";
print”“;
但是progressbar没有出现。我正在打印会话变量,以便知道它存在。为什么progressbar没有出现?
谢谢

您的代码中是否包含jQuery.js文件?你知道没有jQuery.js jQuery UI就不能工作,对吗?你包括核心jQuery库吗?我包括了这个。还是不行!建议:将JS脚本置于CSS之上。我还注意到您正在使用会话。可能相关,也可能不相关,因为许多人不这样做,is
session_start()在所有的.php文件中?