scroll to specific element on page using jquery

This question already has an answer here:

  • jQuery scroll to element 24 answers

  • UPDATE

    Try this one, if you want a menu and menu links to specific page. It will scroll to your page with curtain effect.

    DEMO http://jsfiddle.net/yeyene/mCytP/2/

    Add menu outside of ol , then add links with your li page id in href.

    <div id="menu">
        <ul>
            <li><a href="#home" class="curtain-links curtain-links-active">Home</a></li>
            <li><a href="#about_us" class="curtain-links">About Us</a></li>
            <li><a href="#portfolio" class="curtain-links">Portfolio</a></li>
            <li><a href="#programs" class="curtain-links">Programs</a></li>
         </ul>
    </div>
    
    链接地址: http://www.djcxy.com/p/23086.html

    上一篇: 如何在单击链接时滚动到元素

    下一篇: 使用jquery滚动到页面上的特定元素