JS (Moo Tools) Slider Not Working in FF and Chrome

大城市里の小女人 提交于 2019-12-11 18:18:17

问题


I have the below site: http://kelseydelo.com/

When I click the main nav links in Safari the content slides properly. However in Chrome and Firefox nothing happens when I click these (no errors in Firebug either).

I believe it used to work in FF so it seems a recent upgrade has broken it.

Anyone know what the problem could be?


回答1:


you use mootools 1.2.3 which is old. in 1.2.3, mootools utlised feature detection for browser detection - and in particular, it was a problem with firefox as it relied on the following code:

if (!document.getBoxObjectFor ...)

but that method got made obsolete by mozilla. subsequently, in 1.2.5 and 1.3 mootools detection was done so it does not rely on this any more (breaking change was FF 3.6.nn or something)

on your site in FF 4.0 you can run

console.log(Browser.Engine)

and it comes back as 'unknown' - which will make any browser-specific hooks and fixes fail.

In Chrome 13 Canary, it detected webkit fine but does not work either so there must be something else -- legacy here... in other words, UPGRADE to 1.3.2 (which uses ua-sniffing) - if noobslide supports it, else go 1.2.5.1



来源:https://stackoverflow.com/questions/6170310/js-moo-tools-slider-not-working-in-ff-and-chrome

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!