この Web サイトで機能するには、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);
});
});
まったく仕事ができそうにありませんscrollTo
。誰にもアイデアはありますか?インポートしたものは次のとおりです。
<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>