实在没辙了,高人救救我吧!

sunyiqiao719 2011-02-22 01:40:54
<script type="text/javascript">
function nTabs(thisObj,Num){
if(thisObj.className == "active")return;
var tabObj = thisObj.parentNode.id;
var tabList = document.getElementById(tabObj).getElementsByTagName("li");
for(i=0; i <tabList.length; i++)
{
if (i == Num)
{
thisObj.className = "active";
document.getElementById(tabObj+"_Content"+i).style.display = "block";
}else{
tabList[i].className = "normal";
document.getElementById(tabObj+"_Content"+i).style.display = "none";
}
}
}
var show_king_id = 1;
function show_king_list(e,k)
{
if(show_king_id == k) return true;
o = document.getElementById("a"+show_king_id);
o.className = "bg";
e.className = " ";
show_king_id = k;
}
var show_kinga_id = 1;
function show_kinga_list(f,l)
{
if(show_kinga_id == l) return true;
o = document.getElementById("b"+show_kinga_id);
o.className = "bg";
f.className = " ";
show_kinga_id = l;
}
</script>
<style type="text/css">
*{margin: 0;padding: 0;}
body {font-size:12px;font-family:Arial, Helvetica, sans-serif;color:#666666;}
.door_container {width:250px; background:#fff; border:1px solid #ccc; margin:0 auto; height:380px;}
.door_container .TabTitle {height:30px; text-align:left; width:100%; color:#004499;}
.door_container .TabContent {width:250px; background:#fff; float:left; height:auto;}
.none {display: none;}
.star{width:250px;}
.star dl{width:240px; margin:0 auto 4px;}
.star dl dd{float:left; line-height:18px;}
.star dl dt{float:left;}
.bg{width:240px; border-bottom:1px solid #000000; margin:0 auto;}
.sl01{border:1px solid #ddd; border-bottom:none; background:#f1f1f1; height:22px; line-height:22px; text-align:center; width:40px; margin-top:3px; font-size:13px;color:#004499;}
.sl02 img{ width:90px; height:70px; margin:5px 0 5px 5px;float:left;}
.sl03 a{color:#004498; font-size:13px; font-weight:bold; text-decoration:none; line-height:22px; height:22px;}
.sl03 a:hover{color:#FF0000;text-decoration:none;}
.bg .sl01{border:1px solid #ddd; border-bottom:none; background:#f3f3f3; height:22px; line-height:22px; width:40px; text-align:center; margin-top:3px; font-size:13px;color:#004499;}
.bg .sl02{display:none;}
.bg .sl03{height:22px; line-height:22px;}
.sl04{font-size:13px; line-height:16px; width:140px; text-align:left; margin-top:5px; float:right;}
</style>
<div class="door_container">
<div class="TabTitle">看点关注</div>
<div class="TabContent">
<div id=myTab_Content0>
<div class="star">
<dl id=a1 onmouseover=show_king_list(this,1);>
<table width="240" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="40"><div class="sl01">类型</div></td>

<td class="sl03"><a href="<?=$bqsr[titleurl]?>"> 题目</a></td>
</tr>
<tr>
<td class="sl02" colspan="2"><img src="" /><div class="sl04">介绍</div></td>
</tr>
</table>
</dl>
<dl class=bg id=a2 onmouseover=show_king_list(this,2);>
<table width="240" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="40"><div class="sl01">类型</div></td>
<td class="sl03"><a href="<?=$bqsr[titleurl]?>"> 题目</a></td>
</tr>
<tr>
<td class="sl02" colspan="2"><img src="" /><div class="sl04">介绍</div></td>
</tr>
</table>
</dl>
<dl class=bg id=a3 onmouseover=show_king_list(this,3);>
<table width="240" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="40"><div class="sl01">类型</div></td>
<td class="sl03"><a href="<?=$bqsr[titleurl]?>"> 题目</a></td>
</tr>
<tr>
<td class="sl02" colspan="2"><img src="" /><div class="sl04">介绍</div></td>
</tr>
</table>
</dl>
<dl class=bg id=a4 onmouseover=show_king_list(this,4);>
<table width="240" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="40"><div class="sl01">类型</div></td>
<td class="sl03"><a href="<?=$bqsr[titleurl]?>"> 题目</a></td>
</tr>
<tr>
<td class="sl02" colspan="2"><img src="" /><div class="sl04">介绍</div></td>
</tr>
</table>
</dl>
<dl class=bg id=a5 onmouseover=show_king_list(this,5); style="border-bottom:none;">
<table width="240" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="40"><div class="sl01">类型</div></td>
<td class="sl03"><a href="<?=$bqsr[titleurl]?>"> 题目</a></td>
</tr>
<tr>
<td class="sl02" colspan="2"><img src="" /><div class="sl04">介绍</div></td>
</tr>
</table>
</dl>
</div>
</div>
</div>
</div>



在本地测试没有问题,可以滑动。但是一放到服务器上就不行了,只能显示第一个,其他的都只有题目,无法显示图片和介绍。。。为什么啊!为什么在服务器上就不行了?救救我吧!
...全文
146 5 打赏 收藏 转发到动态 举报
写回复
用AI写文章
5 条回复
切换为时间正序
请发表友善的回复…
发表回复
hongmei85 2011-02-22
  • 打赏
  • 举报
回复
你贴的这个,是浏览器浏览的源文件吗,还是直接打开的php呀?

是不是服务器上数据库里面只有一条数据
q107770540 2011-02-22
  • 打赏
  • 举报
回复
IIS上启用了父路径了没
查看权限
anxiaguan 2011-02-22
  • 打赏
  • 举报
回复
太长了
看别人吧
汉尼拔 2011-02-22
  • 打赏
  • 举报
回复
我放到服务器上可以运行的.

a href="<?=$bqsr[titleurl]?>"要不你先把这个跟后台相关的改成
a href="#" 先这样试试

把4个都改掉
rainfull 2011-02-22
  • 打赏
  • 举报
回复
[Quote=引用 2 楼 q107770540 的回复:]

IIS上启用了父路径了没
查看权限
[/Quote]
这个可能性最大

87,910

社区成员

发帖
与我相关
我的任务
社区描述
Web 开发 JavaScript
社区管理员
  • JavaScript
  • 无·法
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧