有没有相关的JS代码?做出来一个好说,但是,我就是不知道怎么再一个页面上显示3个滑动门
?
?
解决方案 »
- jquery基础
- 请js高手帮忙
- raphael如何在自己画的图片上添加标记?
- window.location/document.location/document.href 都可以实现跳转,他们有什么区别呢?
- 这个可以传参数么?怎么获取参数?
- 这是什么document.getElementById
- 如何能跳过这个系统confirm确认框呀?
- javascript 又没有取字符串子串的函数,如果没有该怎么作?
- 图像处理问题,高手请进!
- 急!!!为什么from.submit()不提交?
- eclipse3.4 如何添加JSEclipse 插件
- innerHTML中对象无法传递的问题~!!!!!!!!!
我自己上传上去了
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>无标题文档</title>
<SCRIPT language=javascript>
function secBoard(n,secTable,mainTable)
{
for(i=0;i<secTable.cells.length;i++)
secTable.cells[i].className="sec1";
secTable.cells[n].className="sec2";
for(i=0;i<mainTable.tBodies.length;i++)
mainTable.tBodies[i].style.display="none";
mainTable.tBodies[n].style.display="block";
}
</SCRIPT>
<style type="text/css">
<!--
.sec1 {
background-color:#00FFCC
}
.sec2 {
background-color:#f00
}
body, td, th {
font-size: 12px;
}
-->
</style>
</head>
<body>
<table width="100%" height="27" border="0" cellpadding="0" cellspacing="0">
<tr>
<td height="27" background="images/left1.gif"><table width="200" height="25" border="0" align="center" cellpadding="0" cellspacing="0" class="biankuang7" id="secTable1">
<tr align="middle" height="22">
<td class="sec1" onmouseover="secBoard(0,secTable1,mainTable1)" width="341" height="22"><strong>最新学院</strong></td>
<td class="sec2" onmouseover="secBoard(1,secTable1,mainTable1)" width="341" height="22"><strong>热门学院</strong></td>
<td class="sec1" onmouseover="secBoard(2,secTable1,mainTable1)" width="341" height="22"><strong>推荐学院</strong></td>
</tr>
</table></td>
</tr>
</table>
<table width="200" border=0 align=center cellPadding=0 cellSpacing=0 class=biankuang1 id=mainTable1>
<!--关于TBODY标记-->
<!--关于cells集合-->
<TBODY style="DISPLAY: block">
<tr>
<td width="1023" align=middle vAlign=top><div align="left">111111111111111</div></td>
</tr>
<!--关于tBodies集合-->
<!--关于display属性-->
<TBODY style="display:none">
<tr>
<td vAlign=top align=middle><div align="left">22222222222222222</div></td>
</tr>
<TBODY style="DISPLAY: none">
<tr>
<td vAlign=top align=middle><div align="left">33333333333333</div></td>
</tr>
<TBODY style="DISPLAY: none">
<!--关于tBodies集合-->
<!--关于display属性-->
</table>
<br />
<hr />
<br />
<table width="200" height="25" border="0" align="center" cellpadding="0" cellspacing="0" class="biankuang7" id="secTable2">
<tr align="middle" height="22">
<td class="sec1" onmouseover="secBoard(0,secTable2,mainTable2)" width="341" height="22"><strong>最新学院</strong></td>
<td class="sec2" onmouseover="secBoard(1,secTable2,mainTable2)" width="341" height="22"><strong>热门学院</strong></td>
<td class="sec1" onmouseover="secBoard(2,secTable2,mainTable2)" width="341" height="22"><strong>推荐学院</strong></td>
</tr>
</table>
</td>
</tr>
</table>
<table width="200" border=0 align=center cellPadding=0 cellSpacing=0 class=biankuang1 id=mainTable2>
<!--关于TBODY标记-->
<!--关于cells集合-->
<TBODY style="DISPLAY: block">
<tr>
<td width="1023" align=middle vAlign=top><div align="left">4444444444444444444</div></td>
</tr>
<!--关于tBodies集合-->
<!--关于display属性-->
<TBODY style="display:none">
<tr>
<td vAlign=top align=middle><div align="left">55555555555555555555555555</div></td>
</tr>
<TBODY style="DISPLAY: none">
<tr>
<td vAlign=top align=middle><div align="left">666666666666666666666</div></td>
</tr>
<TBODY style="DISPLAY: none">
<!--关于tBodies集合-->
<!--关于display属性-->
</table>
<table width="200" height="25" border="0" align="center" cellpadding="0" cellspacing="0" class="biankuang7" id="secTable3">
<tr align="middle" height="22">
<td class="sec1" onmouseover="secBoard(0,secTable3,mainTable3)" width="341" height="22"><strong>最新学院</strong></td>
<td class="sec2" onmouseover="secBoard(1,secTable3,mainTable3)" width="341" height="22"><strong>热门学院</strong></td>
<td class="sec1" onmouseover="secBoard(2,secTable3,mainTable3)" width="341" height="22"><strong>推荐学院</strong></td>
</tr>
</table>
<table width="200" border=0 align=center cellPadding=0 cellSpacing=0 class=biankuang1 id=mainTable3>
<!--关于TBODY标记-->
<!--关于cells集合-->
<TBODY style="DISPLAY: block">
<tr>
<td width="1023" align=middle vAlign=top><div align="left">777777777777777777</div></td>
</tr>
<!--关于tBodies集合-->
<!--关于display属性-->
<TBODY style="display:none">
<tr>
<td vAlign=top align=middle><div align="left">88888888888888888888</div></td>
</tr>
<TBODY style="DISPLAY: none">
<tr>
<td vAlign=top align=middle><div align="left">99999999999999999999999</div></td>
</tr>
<TBODY style="DISPLAY: none">
<!--关于tBodies集合-->
<!--关于display属性-->
</table>
</body>
</html>