日期:2014-05-16  浏览次数:20915 次

我使用JS实现幻灯片,但遇到一个问题,请前辈指引。。。

<table width="1024" border="0" align="center" cellpadding="0" cellspacing="0" class="classX4Y0-1">
  <tr id="idX4Y1-1" class="classX4Y1-1" style="display:block;" onMouseOver="" onMouseOut="">
    <td align="center"><a href="20120815144125gsxw.asp" target="_blank"><img src="tupian/banner01.jpg" width="100%"></a></td>
  </tr>
    <tr id="idX4Y2-1" class="classX4Y2-1" style="display:none;" onMouseOver="" onMouseOut="">
<td align="center"><a href="20130320123714qyzk.asp" target="_blank"><img src="tupian/banner02.jpg" width="100%"/></a></td>
  </tr>
    <tr id="idX4Y3-1" class="classX4Y3-1" style="display:none;" onMouseOver="" onMouseOut="">
<td align="center"><a href="hetaoyuese1002ws.asp" target="_blank"><img src="tupian/banner03.jpg" width="100%"/></a></td>
  </tr>
    <tr id="idX4Y4-1" class="classX4Y4-1" style="display:none;" onMouseOver="" onMouseOut="">
<td align="center"><a href="hetaoyuese1002ct.asp" target="_blank"><img src="tupian/banner04.jpg" width="100%"/></a></td>
  </tr>
</table>
<script language="javascript" type="text/javascript">
var aa1 = document.getElementById("idX4Y1-1");
var bb1 = document.getElementById("idX4Y2-1");
var cc1 = document.getElementById("idX4Y3-1");
var dd1 = document.getElementById("idX4Y4-1");
function buzhouyidong101()
{
aa1.style.display="block";
bb1.style.display="none";
cc1.style.display="none";
dd1.style.display="none";
}
function buzhouover101()
{
aa1.style.display="block";
bb1.style.display="none";
cc1.style.display="none";
dd1.style.display="none";
}
function buzhouyidong202()
{
aa1.style.display="none";
bb1.style.display="block";
cc1.style.display="none";
dd1.style.display="none";
}
function buzhouover202()
{
aa1.style.display="none";
bb1.style.display="block";
cc1.style.display="none";
dd1.style.display="none";
}
function buzhouyidong303()
{
aa1.style.display="none";
bb1.style.display="none";
cc1.style.display="block";
dd1.style.display="none";
}
function buzhouover303()
{
aa1.style.display="none";
bb1.style.display="none";
cc1.style.display="block";