熔岩灯和手风琴的冲突
我在网站的右侧菜单中使用手风琴,效果很好。我想使用 Lavalamp 作为我的主菜单。当 jquery.easing 时,我的手风琴不起作用,但 Lavalamp 需要它。有谁知道我如何解决这个冲突!? 谢谢
I am using Accordion for my website's right menu and it works fine. I want to use Lavalamp for my main menu. When jquery.easing, my accordion does not work but I need it for Lavalamp. Does anyone have any idea how I can fix this conflict !?
thanx
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
我认为我们需要更多信息......演示将是理想的选择,我们可以准确地知道出了什么问题以及出现了什么错误。这可能是兼容性问题。您使用的是最新的 jQueryUI 吗?您使用哪个缓动函数?
作为快速修复,您可以尝试包含此文件: http:// /gsgd.co.uk/sandbox/jquery/easing/jquery.easing.compatibility.js
但如果这不起作用,我们确实需要更多信息来帮助您解决问题。
I think we need a bit more information... a demo would be ideal, and we could do with knowing exactly what goes wrong, and what error you get. It could be a compatibility issue. Are you using the latest jQueryUI? Which easing function are you using?
As a quick fix, you could try including this file: http://gsgd.co.uk/sandbox/jquery/easing/jquery.easing.compatibility.js
but if that doesn't work, we really do need more information to help you fix the problem.
尝试使用 jquery-ui.min.js 而不是 jquery.easing.js 。或者有时这个问题可能是由脚本的顺序引起的,例如将缓动插件放在页面底部,将其他脚本放在顶部。
Try to use jquery-ui.min.js instead jquery.easing.js . Or sometimes this problem could result from the order of the scripts, put the easing plugin in the bottom of the page and other scripts in top for example.
您可以查看的另一件事是:
您的手风琴菜单也使用 jQuery 吗?如果是这样,有时插件会将脚本合并为一个。一种可能性是 Accordion 菜单中也粘贴了一些 jQuery.easing 文件,因此存在冲突。您可以查看该脚本并删除重复的代码。
另外,请确保 jQuery.easing 脚本行位于其他脚本文件的下方。
最简单的方法是将链接粘贴到该页面供我们查看。
Another thing you could look at:
Does your Accordion menu also use jQuery? If so, sometimes the plug-ins will combine the scripts into one. One possibility is that the Accordion menu also has some of the jQuery.easing file pasted into it so it is conflicting. You can look through that script and cut-out the duplicated code.
Also, make sure that the jQuery.easing script line is below your other script files.
The easiest would be to paste a link to the page for us to look at.