我已将 jCarouselLite 与我已经工作的站点合并,但是出现了 PREV 和 NEXT 按钮,但没有图像。图片链接是正确的。
有任何想法吗?
查询:
<script type="text/javascript">
//jCarouselLite
$(function() {
$(".slider").jCarouselLite({
btnNext: ".next",
btnPrev: ".prev",
visible: 4
});
});
</script>
HTML:
<div id="list">
<div class="prev"><img src="images/prev.jpg" alt="prev" /></div>
<div class="slider">
<ul>
<li><a href="#" title="Title 1"><img src="images/store_item_img.jpg" alt="Image 1" class="captify" /></a></li>
<li><a href="#" title="Title 2"><img src="images/store_item_img.jpg" alt="Image 2" class="captify" /></a></li>
<li><a href="#" title="Title 3"><img src="images/store_item_img.jpg" alt="Image 3" class="captify" /></a></li>
<li><a href="#" title="Title 4"><img src="images/store_item_img.jpg" alt="Image 4" class="captify" /></a></li>
<li><a href="#" title="Title 5"><img src="images/store_item_img.jpg" alt="Image 5" class="captify" /></a></li>
<li><a href="#" title="Title 6"><img src="images/store_item_img.jpg" alt="Image 6" class="captify" /></a></li>
<li><a href="#" title="Title 7"><img src="images/store_item_img.jpg" alt="Image 7" class="captify" /></a></li>
<li><a href="#" title="Title 8"><img src="images/store_item_img.jpg" alt="Image 8" class="captify" /></a></li>
</ul>
</div>
<div class="next"><img src="images/next.jpg" alt="next" /></div>
</div>
CSS:
.slider {
background-color:#3399FF;
float:left;
margin:15px;
position:relative;
visibility:hidden;
}
.slider ul {
height:180px;
width:840px;
}
.slider ul li {
padding:0 20px;
}
.slider ul li img {
cursor:pointer;
height:150px;
padding-top:3px;
width:180px;
}
.prev {
cursor:pointer;
float:left;
padding-top:90px;
}
.next {
cursor:pointer;
float:right;
padding-top:90px;
}
脚本:
<script type="text/javascript" src="http://www.theratio.net/js/jquery.js"></script>
<script type="text/javascript" src="js/jcarousellite_1.0.1.pack.js"></script>
<script type="text/javascript" src="js/captify.tiny.js"></script>
请帮忙?
:)
更新:
如果我删除
$("#store_container").hide();
..让它看起来像这样,它可以工作,但是 div 首先打开而不是关闭。
<script type="text/javascript">
$(function(){
$('#toggle').toggle(function(){
$('#store_container').slideDown("slow", function() { $('#store_data').fadeIn(); });
}, function() {
$('#store_data').fadeOut("fast", function() { $('#store_container').slideUp("slow"); });
});
});
</script>
如何使用 .hide 关闭 #store_container ?或者有没有办法在点击功能后显示?