JavaScript 滑块不起作用?
我正在开发一个网站,但遇到了一个恼人的问题。首先,请访问这个页面: http://milabalami.com/saved/2/index.php 将鼠标悬停在右侧的菜单上。您将看到字体改变颜色,并且有一个图像覆盖它。
现在我已经将此菜单实现到 WordPress 主题: http://milabalami.com/ 正如您所看到的将鼠标悬停在菜单上,滑块不起作用。为什么?
问题现已在这里解决:easyslider 的 Javascript 问题
I am working on a website and stuck on an annoying problem. Firstly, please visit this page:
http://milabalami.com/saved/2/index.php Hover your mouse over the Menu on the right. You will see that the font changes colour and there is an image covering it.
Now I have implemented this Menu to a WordPress theme: http://milabalami.com/ As you can see when you hover your mouse over the menu, slider doesn't work. Why?
Issue is now resolved here: Javascript issue with easyslider
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
在 http://miladalami.com/ 上,您添加了 jQuery 3 次:
< img src="https://i.sstatic.net/pMWse.png" alt="alt text">
每次加载 jQuery 时,都会清除对
jQuery.fn
原型,从而使在最后一个插件加载之前加载的所有插件都无用。删除除第一个 jQuery 之外的所有内容,并将其更新为使用版本 1.4.4 而不是 1.4.2,这样就可以了。当然,您使用的 thinkbox 插件在升级后可能无法运行(1.2.4 到 1.4.4 是一个相当大的升级),但您应该能够轻松找到替代品。
On http://miladalami.com/, you are including jQuery 3 times:
Each time you load jQuery, you're wiping out all modifications made to the
jQuery.fn
prototype, and thus rendering all plugins loaded before the final one is loaded useless. Remove all but the first jQuery, and update it to use version 1.4.4 instead of 1.4.2, and you should be fine.Of course, the thinkbox plugin you're using may not function after the upgrade (1.2.4 to 1.4.4 is a rather large upgrade) but you should be able to find alternatives easily.