每个人都知道如何在这段代码中构建一个简单的停止按钮吗?用那个代码可以吗?
<div id="apDiv1">
<ul id="exampleSlider">
<li><img src="Images/A01.jpg" alt="" width="1049" height="768" /></li>
<li><img src="Images/A05.jpg" alt="" width="1049" height="768" /></li>
<li><img src="Images/A02.jpg" alt="" width="1049" height="768" /></li>
<li><img src="Images/A03.jpg" alt="" width="1049" height="768" /></li>
<li><img src="ImagesA04.jpg" alt="" width="1049" height="768" /></li>
</ul>
</div>
<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js"></script>
$(function () {
/* SET PARAMETERS */
var change_img_time = 6000;
var transition_speed = 600;
var simple_slideshow = $("#exampleSlider"),
listItems = simple_slideshow.children('li'),
listLen = listItems.length,
i = 0,
changeList = function () {
listItems.eq(i).fadeOut(transition_speed, function () {
i += 1;
if (i === listLen) {
i = 0;
}
listItems.eq(i).fadeIn(transition_speed);
});
};
listItems.not(':first').hide();
setInterval(changeList, change_img_time);
});
</script>