我在jcarousellite_1.0.1.pack.js 下载了<script type="text/javascript">
$(".mFive mt20").jCarouselLite({
btnNext: ".default .mfLeft",
btnPrev: ".default .mfLeft"
});
</script> <div class="mFive mt20" id="student">
<ul><a href="#" class="mfLeft" ></p><a href="#" class="mfRight" ></a>
<li>
<p class="pImg"><a href="#"><img src="1.jpg"style="height:87px; width:83px;"/></a></p>
</li>
</ul>
</div>
我这样调用是不起作用的。那位大虾知道?
$(".mFive mt20").jCarouselLite({
btnNext: ".default .mfLeft",
btnPrev: ".default .mfLeft"
});
</script> <div class="mFive mt20" id="student">
<ul><a href="#" class="mfLeft" ></p><a href="#" class="mfRight" ></a>
<li>
<p class="pImg"><a href="#"><img src="1.jpg"style="height:87px; width:83px;"/></a></p>
</li>
</ul>
</div>
我这样调用是不起作用的。那位大虾知道?
$(".mFive mt20").jCarouselLite({
btnNext: ".default .mfLeft",
btnPrev: ".default .mfLeft"
});
</script> <div class="mFive mt20" id="student">
<ul><a href="#" class="mfLeft" ></p><a href="#" class="mfRight" ></a>
<li>
<p class="pImg"><a href="#"><img src="1.jpg"style="height:87px; width:83px;"/></a>
</p>
<p class="pImg">
<a href="#"><img src="1.jpg"style="height:87px; width:83px;"/></a></p>
<p class="pImg">
<a href="#"><img src="1.jpg"style="height:87px; width:83px;"/></a></p> </li>
</ul>
</div>
jcarousellite_1.0.1.pack.js
jquery.js
3个都引用到页面进去了
我用 firefox fire bug 看了控制台没有问题。 就是没有效果。
想问下,一定要用class来吗?就不能用id 吗?<script type="text/javascript">
--div 的class 的
$(".mFive mt20").jCarouselLite({
btnNext: ".default .mfLeft",
btnPrev: ".default .mfLeft"
});
</script>
http://sorgalla.com/projects/jcarousel/
这个不错
jcarousellite_1.0.1.pack.js<script type="text/javascript">
$(function() {
$(".mFive mt10").jCarouselLite({
btnNext: ".next",
btnPrev: ".prev",
visible: 5
});
});
$(document).ready(function(){
$('img.captify').captify({
// all of these options are... optional
// ---
// speed of the mouseover effect
speedOver: 'fast',
// speed of the mouseout effect
speedOut: 'normal',
// how long to delay the hiding of the caption after mouseout (ms)
hideDelay: 500,
// 'fade', 'slide', 'always-on'
animation: 'slide',
// text/html to be placed at the beginning of every caption
prefix: '',
// opacity of the caption on mouse over
opacity: '0.7',
// the name of the CSS class to apply to the caption box
className: 'caption-bottom',
// position of the caption (top or bottom)
position: 'bottom',
// caption span % of the image
spanWidth: '100%'
});
});
</script> <div class="mFive mt10" id="student">
<ul><a href="#" class="mfLeft" alt="prev"></p><a href="#" class="mfRight" alt="next"></a> <li>
<p class="pImg"><a href="#"><img src="1.jpg"style="height:87px; width:83px;"/></a>
</p>
<p class="pImg">
<a href="#"><img src="1.jpg"style="height:87px; width:83px;"/></a></p>
<p class="pImg">
<a href="#"><img src="1.jpg"style="height:87px; width:83px;"/></a></p> </li>
</ul>
</div>
------------
没有效果,我那个是超链接 是不用用alt的 ,有什么方法可以替代吗?
我引入了jquery 核心js 和captify.tiny.js jcarousellite_1.0.1.pack.js
$(".mFive").jCarouselLite({代码你懂得})
或
$(".mt10").jCarouselLite({代码你懂得})<div class="mFive mt20" id="student"> 这个div 同时应用了两个样式,分别是mFive ,mt20
但是如果两个 class 都指向同一个元素的话,建议还是不要这样用了。