关键函数:setInterval,fadeIn,fadeOut
<div>
<h1>EXAMPLE ONE</h1>
<div id="exmaple1">
<span class="before"></span>
<img class="show" src="images/example/example0.jpg" />
<img src="images/example/example1.jpg" />
<img src="images/example/example2.jpg" />
<img src="images/example/example3.jpg" />
<img src="images/example/example4.jpg" />
<img src="images/example/example5.jpg" />
<img src="images/example/example6.jpg" />
<img src="images/example/example7.jpg" />
<span class="next"></span>
</div>
</div>
CSS代码: