jQuery滚动菜单插件Section Menu

所属分类:UI-滚动

 45978  320  查看评论 (2)
分享到微信朋友圈
X
jQuery滚动菜单插件Section Menu ie兼容9

jQuery插件创建一个侧面部分的菜单,您可以滚动到页面上的不同部分。

例子

HTML

<html>
    <body>
        <section id="home" data-section-menu="Home">
            <p>Home</p>
        </section>
        <section id="about" data-section-menu="About">
            <p>About</p>
        </section>
        <section id="contact" data-section-menu="Contact">
            <p>Contact</p>
        </section>
    </body>
</html>


CSS

<link rel="stylesheet" href="assets/css/jquery.sectionmenu.css" />


Javascript

<script src="http://libs.baidu.com/jquery/2.0.0/jquery.min.js"></script>
<script type="text/javascript" src="assets/js/jquery.fragmentscroll.min.js"></script>
<script type="text/javascript" src="assets/js/jquery.sectionmenu.min.js"></script>
<script type="text/javascript">
$(window).load(function() {
    $('body').sectionMenu().fragmentScroll();
});
</script>


选项

$('body').sectionMenu({
    // Show title in the menu
    enableTitle: true,
    // Outer element
    element: 'nav',
    // Class and data- name
    class: 'section-menu',
    // Insert content before the menu
    insertBefore: '',
    // Insert content after the menu
    insertAfter: ''
});


相关插件-滚动

jQuery全屏滚动插件,带箭头点击

一款功能齐全的全屏滚动插件,符合绝大部分开发人员的需求,没有滚动循环,无需做过多更改就能满足您的要求。
  滚动
 17907  214

jquery逐条文字向上滚动

jquery逐条文字向上滚动效果
  滚动
 49838  426

css3页面鼠标纵向滑动效果

css3页面鼠标纵向滑动效果
  滚动
 63374  483

javript自定义滚动条

用原生的javript写的自定义滚动条具有拖拽,滚轮事件和键盘事件
  滚动
 31982  356

讨论这个项目(2)回答他人问题或分享插件使用方法奖励jQ币 评论用户自律公约

      0
    2016/9/29 8:09:44
    Legend 0
    2014/12/8 18:03:29
😃
  • 😀
  • 😉
  • 😥
  • 😵
  • 😫
  • 😘
  • 😡
  • 👍
  • 🌹
  • 👏
  • 🍺
  • 🍉
  • 🌙
  • 💖
  • 💔
😃
  • 😀
  • 😉
  • 😥
  • 😵
  • 😫
  • 😘
  • 😡
  • 👍
  • 🌹
  • 👏
  • 🍺
  • 🍉
  • 🌙
  • 💖
  • 💔
取消回复