滚动图片盒
以下问题的第一部分由
解决 安德鲁·丹尼琴科 - www.zebrasus.com
非常感谢您的浏览。
如果有人知道为什么 Firefox 会报告“div-animation.js”的零星问题,那仍然会有帮助。
我自己创建了大部分 JavaScript 代码。直到几天前一切都工作正常。我不确定我改变了什么,但现在我的代码不再在 FF 中工作,但在 IE 中工作正常?
你能看一下吗 http://webstudioproducts.com/demo/TPR/test.html
并告诉我我在 homepageScroll.js 中做错了什么。
看起来该函数正在尝试启动,但有东西阻止了它。
旁注:FF 报告 div-animation.js 中存在偶发性 JS 问题,但其功能是否按照设计跨所有浏览器运行?
The first part of the following question was solved by
Andrew Danylchenko - www.zebrasus.com
Thanks a ton for taking a look
If anyone knows why Firefox is reporting a sporadic issue with "div-animation.js" that would still be helpful.
I created most of this JavaScript code myself. Everything was working fine until a few days ago. Im not sure what I changed but now my code no longer works in FF but works fine in IE?
Can you please take a look at
http://webstudioproductions.com/demo/TPR/test.html
and let me know what I did wrong in homepageScroll.js.
It looks like the function is trying to fire but something is stopping it.
Side note: FF is reporting a sporadic JS issue in div-animation.js but its functioning as designed cross all browsers?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我无法解决折叠的 div,因为我在 Mac OSX 上的最新版本的 Chrome 中只看到了一个类似 facebook 的按钮。html 文件似乎链接到您提到的 js 文件。js
文件内没有任何内容我可以看到这是“错误的”,但是,在声明数组时尝试使用文字表示法,这样
就变成了
另外,如果 setTimout 声明上设置的时间低于 10,则可能会出现一些问题。浏览器将时间限制在 10 毫秒(即使您明确指定“0”),因此在某处放置一个条件以确保该数字永远不会低于 10 可能会有所帮助。
I can't help with the collapsing divs as I"m seeing nothing but a facebook like button in the latest build of Chrome on Mac OSX. The html file appears to be linking to the js files you mention.
Inside the js files there's nothing I can see that's "wrong". However, try using literal notation when declaring your arrays, so
becomes
Also, some problems may be occurring if the time set on your setTimout declarations falls below 10. Many browsers throttle the time at 10ms (even if you explicitly specify '0'), so putting a condition somewhere to make sure that the number never falls below 10 could help.