现在的位置: 首页Jquery>正文
jq category
jquery 推荐插件:幻灯插件Nivo Slider
发表于489 天前 Jquery 评论数 9

一个加载设置拥有9种过度效果的超级smooth slider,它还支持如链接图像和键盘导航等内容。

如何使用:


非常简单 不多说:

<!-- Usually in the <head> section -->
<link rel="stylesheet" href="nivo-slider.css" type="text/css" media="screen" />
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js" type="text/javascript"></script>
<script src="jquery.nivo.slider.pack.js" type="text/javascript"></script>

<!-- Then somewhere in the <body> section -->
<div id="slider">
    <img src="images/slide1.jpg" alt="" />
    <a href="http://dev7studios.com"><img src="images/slide2.jpg" alt="" title="#htmlcaption" /></a>
    <img src="images/slide3.jpg" alt="" title="This is an example of a caption" />
    <img src="images/slide4.jpg" alt="" />
</div>
<div id="htmlcaption" class="nivo-html-caption">
    <strong>This</strong> is an example of a <em>HTML</em> caption with <a href="#">a link</a>.
</div>

可选参数设置

<script type="text/javascript">// <![CDATA[
$(window).load(function() {
    $('#slider').nivoSlider({
        effect:'random', //Specify sets like: 'fold,fade,sliceDown'
        slices:15,
        animSpeed:500, //Slide transition speed
        pauseTime:3000,
        startSlide:0, //Set starting Slide (0 index)
        directionNav:true, //Next & Prev
        directionNavHide:true, //Only show on hover
        controlNav:true, //1,2,3...
        controlNavThumbs:false, //Use thumbnails for Control Nav
        controlNavThumbsFromRel:false, //Use image rel for thumbs
        controlNavThumbsSearch: '.jpg', //Replace this with...
        controlNavThumbsReplace: '_thumb.jpg', //...this in thumb Image src
        keyboardNav:true, //Use left & right arrows
        pauseOnHover:true, //Stop animation while hovering
        manualAdvance:false, //Force manual transitions
        captionOpacity:0.8, //Universal caption opacity
        beforeChange: function(){},
        afterChange: function(){},
        slideshowEnd: function(){}, //Triggers after all slides have been shown
        lastSlide: function(){}, //Triggers when last slide is shown
        afterLoad: function(){} //Triggers when slider has loaded
    });
});
// ]]></script>

官方网站:Nivo Slider

jquery 推荐插件:幻灯插件Nivo Slider:目前有9 条留言

  1. computer repair alpharetta : 2012年03月02日11:12 下午 回复

    I really like that. You touched my heart!

  2. Demon : 2011年02月21日10:03 上午 回复

    想要整合到小博里。希望能发个方法 :evil:

  3. 优趣 : 2011年01月19日12:56 下午 回复

    额、有预览就更佳了!

  4. 心络 : 2011年01月18日4:56 下午 回复

    其实一直想学jquery 奈何没有时间和精力

    • phelps : 2011年01月19日8:02 上午 回复

      你现在从事什么工作啊??? :?:

      • phelps : 2011年01月19日10:00 上午 回复

        测试回复功能。。就是不行啊 :cry:

        • JaCall : 2011年01月19日10:48 上午 回复

          可以恢复呀!

          • phelps : 2011年01月19日11:08 上午

            我指的邮件回复、、、 :razz: :razz: :razz: :razz:

    • JaCall : 2011年01月19日10:48 上午 回复

      想学就去学呀!

给我留言


/ 快捷键:Ctrl+Enter
不想听你唠叨×