0
我对jQuery相当陌生,只用它一点点,所以这可能是一个微不足道的问题。我也尝试第一次使用HTML Boilerplate。JQuery LocalScroll/ScrollTo无法正常工作
我试图在ScrollTo/LocalScroll(http://flesler.blogspot.co.uk/2007/10/jquerylocalscroll-10.html)的帮助下在两个轴上产生平滑的滚动。该网站将包含窗口大小的框,顶部带有固定导航。浏览器窗口应该顺利滚动到该位置。
我的编程至今都可以在这里 http://www.andylang.ch/2013/
发现两种脚本加载,我试图初始化他们在main.js文件中像这样
//Smooth scrolling
jQuery(function($){
// scroll both directions
$.localScroll.defaults.axis = 'xy';
// Scroll initially if there's a hash (#something) in the url
$.localScroll.hash({
queue:false,
duration:1500
});
// Scroll settings
$.localScroll({
queue:false,
duration:1000,
hash:true
});
});
任何帮助将appriciated。
谢谢,安迪
明天我只能接受我的答案:),所以如果有人知道任何更顺利的解决方案,那么我很乐意提供建议。 –