<script type="text/javascript">$(document).ready(function(){var i ;var j ;for(i=1; i<6; i++){$("img").attr("src",i+".jpg");$("img").fadeOut(3000,function(){$("img").attr("src",i+1+".jpg");});}})</script><body><div id="pic"><img src="1.jpg" /></div>
2 回答
慕尼黑8549860
TA贡献1818条经验 获得超11个赞
<script type="text/javascript">
$(document).ready(function() {
$('.slideshow').cycle({
fx: 'fade' // choose your transition type, ex: fade, scrollUp,
shuffle, etc...
});
});
</script>
</head>
<body>
<div class="slideshow">
<img src="1.jpg" width="200" height="200" />
<img src="2.jpg" width="200" height="200" />
<img src="3.jpg" width="200" height="200" />
<img src="4.jpg" width="200" height="200" />
</div>
</body>
- 2 回答
- 0 关注
- 488 浏览
添加回答
举报
0/150
提交
取消