<!DOCTYPE html PUBLIC "
<html xmlns="
<head>
<meta http
<meta name="author" content="Nancle from CAU CS
<title>jQuery圖片漸變切換</title>
<script type="text/javascript" src="
<style type="text/css">
ul{position:relative;}
ul li{display:block; position:absolute; left:
img{width:
</style>
</head>
<body>
<ul>
<li><img src="
<li><img src="
<li><img src="
<li><img src="
</ul>
</div>
<script>
var switchSpeed =
var fadeSpeed =
setInterval(function(){
$(
$(this)
});
}
</script>
</body>
</html>
效果預覽
From:http://tw.wingwit.com/Article/program/Java/JSP/201311/20242.html