在这里,我使用的是图像滑块和 jquery 的循环插件。但只有其中一个工作,其代码放在上面。哪里有问题 ?我的主要内容代码如下。
<script src="js/jquery.js" type="text/javascript"></script>
<script src="js/easySlider1.7.js" type="text/javascript"></script>
<link href="css/jq.css" rel="stylesheet" type="text/css" />
<link href="css/cycle.css" rel="stylesheet" type="text/css" />
<script src="Scripts/jquery-1.7.1.js" type="text/javascript"></script>
<script src="js/chili-1.7.pack.js" type="text/javascript"></script>
<script src="js/jquery.easing.1.3.js" type="text/javascript"></script>
<script src="js/jquery.cycle.all.js" type="text/javascript"></script>
$(document).ready(function () {
$('#s1').cycle({
fx: 'scrollDown',
speedIn: 2000,
speedOut: 500,
easeIn: 'easeInCirc',
easeOut: 'easeOutBounce',
delay: -2000
});
$("#slider").easySlider({
auto: true,
continuous: true,
nextId: "slider1next",
prevId: "slider1prev"
});
});
<link href="css/screen.css" rel="stylesheet" type="text/css" />
滑块代码
<div id="slider" >
<ul>
<li><a href="http://templatica.com/preview/30"><img src="images/01.jpg" alt="Css Template Preview" /></a></li>
<li><a href="http://templatica.com/preview/7"><img src="images/02.jpg" alt="Css Template Preview" /></a></li>
<li><a href="http://templatica.com/preview/25"><img src="images/03.jpg" alt="Css Template Preview" /></a></li>
<li><a href="http://templatica.com/preview/26"><img src="images/04.jpg" alt="Css Template Preview" /></a></li>
<li><a href="http://templatica.com/preview/27"><img src="images/05.jpg" alt="Css Template Preview" /></a></li>
</ul>
</div>
<div class="clear">
</div>
</div>
和循环插件html
<img src="http://cloud.github.com/downloads/malsup/cycle/beach1.jpg" alt="" />
<img src="http://cloud.github.com/downloads/malsup/cycle/beach2.jpg" alt="" />
<img src="http://cloud.github.com/downloads/malsup/cycle/beach3.jpg" alt="" />
</div>