js图片轮播

qq346291119 qq346291119 墨衍会员 · AI 创作全网分发 墨衍智能分发 通过墨衍一键同步至各平台 可同步平台 CSDN微信公众号微博知乎掘金百家号博客园抖音小红书 你的文章也可以这样分发 墨衍会员 ¥399起/年,写一次发全网 我也要 + 加入社区
<!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>
function showDaTu(src){
document.getElementById("defaultImg").src=src;
}
</script>

</head>

<body>
<table border="0">
<tr>
<td>
<img src='images/01.jpg' onmouseover="showDaTu('images/06.jpg')"><br />
<img src='images/02.jpg' onmouseover="showDaTu('images/07.jpg')"><br />
<img src='images/03.jpg' onmouseover="showDaTu('images/08.jpg')"><br />
<img src='images/04.jpg' onmouseover="showDaTu('images/09.jpg')">
</td>
<td>
<img src="images/10.jpg" id="defaultImg">
</td>
</tr>
</table>

</body>
</html>



只能鼠标移动到上面的时候改变图片 怎么加个轮播效果
...全文
评论 22
收藏 已收藏
分享
返回顶部
qq346291119
.NET社区 62,274 成员 668,968 内容