实在没辙了,高人救救我吧!
<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>
在本地测试没有问题,可以滑动。但是一放到服务器上就不行了,只能显示第一个,其他的都只有题目,无法显示图片和介绍。。。为什么啊!为什么在服务器上就不行了?救救我吧!