向我展示所有图像,而不是向我展示DOTS

时间:2013-12-17 13:20:54

标签: jquery html

<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8" />
<meta http-equiv="Content-Style-Type" content="text/css" />
<style type="text/css">
td a { margin: 5px }
.nav { margin: 5px 0 }
#nav a, #s7 strong { margin: 0 5px; padding: 3px 5px; border: 1px solid #ccc; background: #fc0; text-decoration: none }
#nav a.activeSlide { background: #ea0 }
#nav a:focus { outline: none; }
#output { text-align: left; }

</style>
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.5/jquery.min.js"></script>
<script type="text/javascript" src="cycle_all.js"></script>
<script type="text/javascript">
$.fn.cycle.defaults.timeout = 6000;
$(function() {
$('#s4').cycle({
        fx:     'scrollHorz',
        speed:  'fast',
        timeout: 0,
        cleartypeNoBg: true,
        pager:  '#nav',
        pagerAnchorBuilder: function paginate(idx, el) {
            return '<a class="service' + idx + '" href="#" >&bull;</a>';

    });
});
</script>
</head>
<body>
<div id="demos">
   <table cellspacing="20">
    <tr>
    <td>  
        <h1>Pager</h1>
        <div id="s4" class="pics">
            <img src="http://malsup.github.com/images/beach1.jpg" width="200" height="200" />
            <img src="http://malsup.github.com/images/beach2.jpg" width="200" height="200" />
            <img src="http://malsup.github.com/images/beach3.jpg" width="200" height="200" />
            <img src="http://malsup.github.com/images/beach4.jpg" width="200" height="200" />
            <img src="http://malsup.github.com/images/beach5.jpg" width="200" height="200" />
            <img src="http://malsup.github.com/images/beach6.jpg" width="200" height="200" />
            <img src="http://malsup.github.com/images/beach7.jpg" width="200" height="200" />

        </div>

    </td></tr>
    </table>
</div>
</div>

</body>
</html>
在关于循环插件的小小研究之后,我制作了自己的小程序,当用户点击它时会改变图像,但不是这样,它会向我显示所有图像。我不知道我做错了什么。这是我的第一个程序,所以请告诉我哪里出错了

0 个答案:

没有答案