scrollTo函数jQuery不工作

我需要Jquery的scrollTo功能来为这个网站工作: http://cinicraft.com/Silverman/index.html

我尝试了以下内容

$(document).ready(function()
{
    $("div.btnLp3").click(function(){
        $('body,html').scrollTo('#target-examples',800,{easing:'elasout'});
    });
});

我也试过这个:

$(document).ready(function()
{
    $("div.btnLp3").click(function(){
        $('html,body').animate({ scrollTop: $(window.location.hash).offset().top},1000);
    });
});

我似乎无法滚动到所有工作.有人有什么想法吗?这是我导入的:

<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js">  </script>    
<script src="http://code.jquery.com/ui/1.10.3/jquery-ui.js">  </script>

解决方法

尝试这个
$("#clickme").click(function() {
    $('html,body').animate({
        scrollTop: $("#wrap2").offset().top
    },2000);
    return false;
});

FIDDLE

相关文章

页面搜索关键词突出 // 页面搜索关键词突出 $(function () {...
jQuery实时显示日期、时间 html: &lt;span id=&quot...
jQuery 添加水印 &lt;script src=&quot;../../../.....
中文:Sys.WebForms.PageRequestManagerParserErrorExceptio...
1. 用Response.Write方法 代码如下: Response.Write(&q...
Jquery实现按钮点击遮罩加载,处理完后恢复 思路: 1.点击按...