-6
我在用jQueryjQuery循环刚停止工作?
<head>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js"> </script>
<script src="http://cloud.github.com/downloads/malsup/cycle/jquery.cycle.all.latest.js"></script>
<script> $('.rotator').cycle({ fx: 'fade', timeout: 7000 }); </script>
</head>
<body>
<div class="rotator">
<img src="1.jpg">
<img src="2.jpg">
<img src="3.jpg">
<img src="4.jpg">
</div>
</body>
一个小问题,今天是工作的罚款早些时候那么它只是停止工作?有什么不对?
你是否以任何方式在代码停止工作之前更改了代码? – Huangism
有什么不适合呢? – uptownnickbrown
您需要将jquery代码放在'$(document).ready()'DOM处理程序 – karthikr