我是新手,但管理了以下内容。用户点击三张图片后如何重新开始?
<button onclick="slideSwitch()">Click me</button>
<div id="slideshow">
<img src="image1.jpg" style="position:absolute;" class="active" />
<img src="image2.jpg" style="position:absolute;" />
<img src="image3.jpg" style="position:absolute;" />
</div>
function slideSwitch() {
var $active = $('div#slideshow IMG.active');
var $next = $active.next();
$next.addClass('active');
$active.removeClass('active');
}