这是自己弄进 discuz.htm里的代码 求高手支招 ,怎么解决!!!!!!
<div class="content">
<div class="a-content">
<div class="carousel-content">
<ul class="carousel">
<li><img src="./images/pic1.png"></li>
<li><img src="./images/pic2.png"></li>
<li><img src="./images/pic3.png"></li>
<li><img src="./images/pic4.png"></li>
<li><img src="./images/pic5.png"></li>
</ul>
<ul class="img-index"></ul>
<div class="carousel-prev"><img src="./images/left1.png"></div>
<div class="carousel-next"><img src="./images/right1.png"></div>
</div>
</div>
</div>
<script src="http://www.jq22.com/jquery/jquery-1.10.2.js"></script>
<script type="text/javascript" src="./scripts/carousel.js"></script>
<script type="text/javascript">
$(function(){
$(".carousel-content").carousel({
carousel : ".carousel",//轮播图容器
indexContainer : ".img-index",//下标容器
prev : ".carousel-prev",//左按钮
next : ".carousel-next",//右按钮
timing : 3000,//自动播放间隔
animateTime : 700,//动画时间
autoPlay : true,//是否自动播放 true/false
direction : "left",//滚动方向 right/left
});
$(".carousel-content").hover(function(){
$(".carousel-prev,.carousel-next").fadeIn(300);
},function(){
$(".carousel-prev,.carousel-next").fadeOut(300);
});
$(".carousel-prev").hover(function(){
$(this).find("img").attr("src","./images/left2.png");
},function(){
$(this).find("img").attr("src","./images/left1.png");
});
$(".carousel-next").hover(function(){
$(this).find("img").attr("src","./images/right2.png");
},function(){
$(this).find("img").attr("src","./images/right1.png");
});
});
</script>
|