求助!关于PHP include 的问题!请各位帮帮忙! 自己的知识很有限,完全业余,帮别人做了个页面,在页面插入 <?php include_once(dirname(__FILE__)."/dh.php"); ?>引用的是个导航-弹出式下拉菜单, 但是上传到网上,下拉菜单都不显示,在网上查了一天也还是没弄出来,我这样写对吗~希望大家帮帮忙~万分感谢啊 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 打开你的php错误提示,这样如果文件路径不存在的话就会提醒你了。根据错误提示修改即可 用绝对路径吧。。$_SERVER["DOCUMENT_ROOT"]."/dh.php" 1.开启error_reporting(E_ALL);2.检查JS的错误。 ini_set('display_errors',TRUE);看看报什么错 实在是外行,我就是一做平面的,真不太会弄,麻烦师兄们给我说的仔细点,ini_set('display_errors',TRUE); 加入 网页没有反应 http://www.cuicuidesign.cn/2011/news.php 就是这个网页上面的菜单 引用 <?php include_once(dirname(__FILE__)."/dh.php"); 弹出式菜单不显示而这个页面, http://www.cuicuidesign.cn/2011/adjudicator.php我是直接在里面加的弹出式菜单,显示没有任何问题以下是菜单文件的code=PHP][/code]<html><head><meta http-equiv="Content-Type" content="text/html; charset=gb2312" /><title>无标题文档</title><script type="text/JavaScript"><!--function mmLoadMenus() { if (window.mm_menu_1010153040_0) return; window.mm_menu_1010153040_0 = new Menu("root",125,32,"",12,"#333333","#CC0000","#E3E3E3","#E3E3E3","right","middle",3,1,20,-5,7,true,false,true,0,false,false); mm_menu_1010153040_0.addMenuItem("活动介绍","window.open('introduction.php#introduction', '_self');"); mm_menu_1010153040_0.addMenuItem("评审准则","window.open('introduction.php#basis', '_self');"); mm_menu_1010153040_0.addMenuItem("奖项设置","window.open('introduction.php#award', '_self');"); mm_menu_1010153040_0.addMenuItem("活动价值","window.open('introduction.php#value', '_self');"); mm_menu_1010153040_0.hideOnMouseOut=true; mm_menu_1010153040_0.bgColor='#999999'; mm_menu_1010153040_0.menuBorder=0; mm_menu_1010153040_0.menuLiteBgColor='#CCCCCC'; mm_menu_1010153040_0.menuBorderBgColor='#CCCCCC'; window.mm_menu_1010160802_0 = new Menu("root",125,32,"",12,"#333333","#CC0000","#E3E3E3","#E3E3E3","right","middle",3,1,20,-5,7,true,false,true,0,false,false); mm_menu_1010160802_0.addMenuItem("总决赛评审","window.open('adjudicator.php#zongpingshen', '_self');"); mm_menu_1010160802_0.addMenuItem("分类赛评审","window.open('adjudicator.php#fenpingshen', '_self');"); mm_menu_1010160802_0.addMenuItem("初选评审","window.open('adjudicator.php#chupingshen', '_self');"); mm_menu_1010160802_0.hideOnMouseOut=true; mm_menu_1010160802_0.bgColor='#999999'; mm_menu_1010160802_0.menuBorder=0; mm_menu_1010160802_0.menuLiteBgColor='#CCCCCC'; mm_menu_1010160802_0.menuBorderBgColor='#CCCCCC'; window.mm_menu_1010161542_0 = new Menu("root",125,32,"宋体",12,"#333333","#CC0000","#D9D9D9","#D9D9D9","right","middle",3,1,20,-5,7,true,false,true,0,false,false); mm_menu_1010161542_0.addMenuItem("总决赛榜单","window.open('news.php#endzongbangdan', '_self');"); mm_menu_1010161542_0.addMenuItem("总决赛入围榜单","window.open('news.php#zongbangdan', '_self');"); mm_menu_1010161542_0.addMenuItem("单项奖榜单","window.open('news.php#dangbangdan', '_self');"); mm_menu_1010161542_0.addMenuItem("分类赛榜单","window.open('news.php#fenbangdan', '_self');"); mm_menu_1010161542_0.addMenuItem("营销类文章链接","window.open('news.php#article', '_self');"); mm_menu_1010161542_0.hideOnMouseOut=true; mm_menu_1010161542_0.bgColor='#999999'; mm_menu_1010161542_0.menuBorder=0; mm_menu_1010161542_0.menuLiteBgColor='#CCCCCC'; mm_menu_1010161542_0.menuBorderBgColor='#CCCCCC'; window.mm_menu_1010162238_0 = new Menu("root",125,32,"",12,"#333333","#CC0000","#E3E3E3","#E3E3E3","right","middle",3,1,20,-5,7,true,false,true,0,false,false); mm_menu_1010162238_0.addMenuItem("总决赛图文","window.open('pic.php#zongtu', '_self');"); mm_menu_1010162238_0.addMenuItem("分类赛图文","window.open('pic.php#fentu', '_self');"); mm_menu_1010162238_0.hideOnMouseOut=true; mm_menu_1010162238_0.bgColor='#999999'; mm_menu_1010162238_0.menuBorder=0; mm_menu_1010162238_0.menuLiteBgColor='#CCCCCC'; mm_menu_1010162238_0.menuBorderBgColor='#CCCCCC';mm_menu_1010162238_0.writeMenus();} // mmLoadMenus()function MM_swapImgRestore() { //v3.0 var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;}function MM_preloadImages() { //v3.0 var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array(); var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++) if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}}function MM_findObj(n, d) { //v4.01 var p,i,x; if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) { d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);} if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n]; for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document); if(!x && d.getElementById) x=d.getElementById(n); return x;}function MM_swapImage() { //v3.0 var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3) if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}}//--></script><script language="JavaScript" src="mm_menu.js"></script><style type="text/css"><!--body { margin-top: 0px; margin-bottom: 0px;}--></style></head><body onload="MM_preloadImages('images/05-2.jpg','images/01-2.jpg','images/02-2.jpg','images/03-2.jpg','images/04-2.jpg','images/06-2.jpg','images/07-2.jpg')"><script language="JavaScript1.2">mmLoadMenus();</script><table width="1000" border="0" align="left" cellpadding="0" cellspacing="0"> <tr> <td width="125" height="60" background="images/top.gif"><a href="main.html" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('Image1','','images/01-2.jpg',1)"><img src="images/01.jpg" name="Image1" width="126" height="60" border="0" id="Image1" /></a></td> <td width="125" height="60" background="images/top.gif"><a href="introduction.php" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('Image2','','images/02-2.jpg',1)"><img src="images/02.jpg" name="Image2" width="125" height="60" border="0" id="Image2" onmouseover="MM_showMenu(window.mm_menu_1010153040_0,0,60,null,'Image2')" onmouseout="MM_startTimeout();" /></a></td> <td width="125" height="60" background="images/top.gif"><a href="adjudicator.php" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('Image3','','images/03-2.jpg',1)"><img src="images/03.jpg" name="Image3" width="125" height="60" border="0" id="Image3" onmouseover="MM_showMenu(window.mm_menu_1010160802_0,0,60,null,'Image3')" onmouseout="MM_startTimeout();" /></a></td> <td width="125" background="images/top.gif"><a href="news.php" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('Image4','','images/04-2.jpg',1)"><img src="images/04.jpg" name="Image4" width="125" height="60" border="0" id="Image4" onmouseover="MM_showMenu(window.mm_menu_1010161542_0,0,60,null,'Image4')" onmouseout="MM_startTimeout();" /></a></td> <td width="125" background="images/top.gif"><a href="pic.php" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('Image5','','images/05-2.jpg',1)"><img src="images/05.jpg" name="Image5" width="125" height="60" border="0" id="Image5" onmouseover="MM_showMenu(window.mm_menu_1010162238_0,0,60,null,'Image5')" onmouseout="MM_startTimeout();" /></a></td> <td width="125" background="images/top.gif"><a href="#" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('Image1','','images/05-2.jpg',1)"></a><a href="video.php" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('Image6','','images/06-2.jpg',1)"><img src="images/06.jpg" name="Image6" width="125" height="60" border="0" id="Image6" /></a></td> <td width="125" background="images/top.gif"><a href="http://www.eeo.com.cn/zt/2011/lyyx/index.shtml" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('Image7','','images/07-2.jpg',1)"><img src="images/07.jpg" name="Image7" width="125" height="60" border="0" id="Image7" /></a></td> <td width="125" height="60" background="images/top.gif"> </td> </tr></table></body></html> php扩展函数调用C动态库函数问题 PHP读取文件夹 php Zend Studion 7.0怎么配置apche! 跳转传值 php smart 模板怎么给input文本框赋值 问一个时髦问题,关于信息抓取?老大们来。 如何在PHP中读出COOKIE的name属性和value属性,在线等待 PHP中怎样下载EXCEL文件? 谁能帮我解释一下这个cookie文件所包含数据的含义 高分征解:怎样用PHP实现统计当前在线人数(给出源代码最好) 外包一php+mysql小网站程序部分价格:600元 cookies 问题
1.开启error_reporting(E_ALL);
2.检查JS的错误。
ini_set('display_errors',TRUE);看看报什么错
http://www.cuicuidesign.cn/2011/news.php 就是这个网页上面的菜单 引用 <?php include_once(dirname(__FILE__)."/dh.php"); 弹出式菜单不显示而这个页面, http://www.cuicuidesign.cn/2011/adjudicator.php我是直接在里面加的弹出式菜单,显示没有任何问题
以下是菜单文件的
code=PHP][/code]
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>无标题文档</title>
<script type="text/JavaScript">
<!--
function mmLoadMenus() {
if (window.mm_menu_1010153040_0) return;
window.mm_menu_1010153040_0 = new Menu("root",125,32,"",12,"#333333","#CC0000","#E3E3E3","#E3E3E3","right","middle",3,1,20,-5,7,true,false,true,0,false,false);
mm_menu_1010153040_0.addMenuItem("活动介绍","window.open('introduction.php#introduction', '_self');");
mm_menu_1010153040_0.addMenuItem("评审准则","window.open('introduction.php#basis', '_self');");
mm_menu_1010153040_0.addMenuItem("奖项设置","window.open('introduction.php#award', '_self');");
mm_menu_1010153040_0.addMenuItem("活动价值","window.open('introduction.php#value', '_self');");
mm_menu_1010153040_0.hideOnMouseOut=true;
mm_menu_1010153040_0.bgColor='#999999';
mm_menu_1010153040_0.menuBorder=0;
mm_menu_1010153040_0.menuLiteBgColor='#CCCCCC';
mm_menu_1010153040_0.menuBorderBgColor='#CCCCCC';
window.mm_menu_1010160802_0 = new Menu("root",125,32,"",12,"#333333","#CC0000","#E3E3E3","#E3E3E3","right","middle",3,1,20,-5,7,true,false,true,0,false,false);
mm_menu_1010160802_0.addMenuItem("总决赛评审","window.open('adjudicator.php#zongpingshen', '_self');");
mm_menu_1010160802_0.addMenuItem("分类赛评审","window.open('adjudicator.php#fenpingshen', '_self');");
mm_menu_1010160802_0.addMenuItem("初选评审","window.open('adjudicator.php#chupingshen', '_self');");
mm_menu_1010160802_0.hideOnMouseOut=true;
mm_menu_1010160802_0.bgColor='#999999';
mm_menu_1010160802_0.menuBorder=0;
mm_menu_1010160802_0.menuLiteBgColor='#CCCCCC';
mm_menu_1010160802_0.menuBorderBgColor='#CCCCCC';
window.mm_menu_1010161542_0 = new Menu("root",125,32,"宋体",12,"#333333","#CC0000","#D9D9D9","#D9D9D9","right","middle",3,1,20,-5,7,true,false,true,0,false,false);
mm_menu_1010161542_0.addMenuItem("总决赛榜单","window.open('news.php#endzongbangdan', '_self');");
mm_menu_1010161542_0.addMenuItem("总决赛入围榜单","window.open('news.php#zongbangdan', '_self');");
mm_menu_1010161542_0.addMenuItem("单项奖榜单","window.open('news.php#dangbangdan', '_self');");
mm_menu_1010161542_0.addMenuItem("分类赛榜单","window.open('news.php#fenbangdan', '_self');");
mm_menu_1010161542_0.addMenuItem("营销类文章链接","window.open('news.php#article', '_self');");
mm_menu_1010161542_0.hideOnMouseOut=true;
mm_menu_1010161542_0.bgColor='#999999';
mm_menu_1010161542_0.menuBorder=0;
mm_menu_1010161542_0.menuLiteBgColor='#CCCCCC';
mm_menu_1010161542_0.menuBorderBgColor='#CCCCCC';
window.mm_menu_1010162238_0 = new Menu("root",125,32,"",12,"#333333","#CC0000","#E3E3E3","#E3E3E3","right","middle",3,1,20,-5,7,true,false,true,0,false,false);
mm_menu_1010162238_0.addMenuItem("总决赛图文","window.open('pic.php#zongtu', '_self');");
mm_menu_1010162238_0.addMenuItem("分类赛图文","window.open('pic.php#fentu', '_self');");
mm_menu_1010162238_0.hideOnMouseOut=true;
mm_menu_1010162238_0.bgColor='#999999';
mm_menu_1010162238_0.menuBorder=0;
mm_menu_1010162238_0.menuLiteBgColor='#CCCCCC';
mm_menu_1010162238_0.menuBorderBgColor='#CCCCCC';mm_menu_1010162238_0.writeMenus();
} // mmLoadMenus()function MM_swapImgRestore() { //v3.0
var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}function MM_preloadImages() { //v3.0
var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}function MM_findObj(n, d) { //v4.01
var p,i,x; if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
if(!x && d.getElementById) x=d.getElementById(n); return x;
}function MM_swapImage() { //v3.0
var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}
//-->
</script>
<script language="JavaScript" src="mm_menu.js"></script>
<style type="text/css">
<!--
body {
margin-top: 0px;
margin-bottom: 0px;
}
-->
</style>
</head><body onload="MM_preloadImages('images/05-2.jpg','images/01-2.jpg','images/02-2.jpg','images/03-2.jpg','images/04-2.jpg','images/06-2.jpg','images/07-2.jpg')">
<script language="JavaScript1.2">mmLoadMenus();</script>
<table width="1000" border="0" align="left" cellpadding="0" cellspacing="0">
<tr>
<td width="125" height="60" background="images/top.gif"><a href="main.html" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('Image1','','images/01-2.jpg',1)"><img src="images/01.jpg" name="Image1" width="126" height="60" border="0" id="Image1" /></a></td>
<td width="125" height="60" background="images/top.gif"><a href="introduction.php" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('Image2','','images/02-2.jpg',1)"><img src="images/02.jpg" name="Image2" width="125" height="60" border="0" id="Image2" onmouseover="MM_showMenu(window.mm_menu_1010153040_0,0,60,null,'Image2')" onmouseout="MM_startTimeout();" /></a></td>
<td width="125" height="60" background="images/top.gif"><a href="adjudicator.php" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('Image3','','images/03-2.jpg',1)"><img src="images/03.jpg" name="Image3" width="125" height="60" border="0" id="Image3" onmouseover="MM_showMenu(window.mm_menu_1010160802_0,0,60,null,'Image3')" onmouseout="MM_startTimeout();" /></a></td>
<td width="125" background="images/top.gif"><a href="news.php" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('Image4','','images/04-2.jpg',1)"><img src="images/04.jpg" name="Image4" width="125" height="60" border="0" id="Image4" onmouseover="MM_showMenu(window.mm_menu_1010161542_0,0,60,null,'Image4')" onmouseout="MM_startTimeout();" /></a></td>
<td width="125" background="images/top.gif"><a href="pic.php" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('Image5','','images/05-2.jpg',1)"><img src="images/05.jpg" name="Image5" width="125" height="60" border="0" id="Image5" onmouseover="MM_showMenu(window.mm_menu_1010162238_0,0,60,null,'Image5')" onmouseout="MM_startTimeout();" /></a></td>
<td width="125" background="images/top.gif"><a href="#" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('Image1','','images/05-2.jpg',1)"></a><a href="video.php" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('Image6','','images/06-2.jpg',1)"><img src="images/06.jpg" name="Image6" width="125" height="60" border="0" id="Image6" /></a></td>
<td width="125" background="images/top.gif"><a href="http://www.eeo.com.cn/zt/2011/lyyx/index.shtml" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('Image7','','images/07-2.jpg',1)"><img src="images/07.jpg" name="Image7" width="125" height="60" border="0" id="Image7" /></a></td>
<td width="125" height="60" background="images/top.gif"> </td>
</tr>
</table>
</body>
</html>