升级到 fancybox 版本 2,现在 fancybox 不再花哨了
如果您查看此页面 http://ccc.allthingswebdesign.com/index.php/patterns /29 有一个图像,如果您单击它,应该会在 fancybox 窗口中打开。事实上,它曾经是这样的,直到我升级到最新版本的 fancybox,现在它坏了。谁能帮我弄清楚我需要做什么才能让它再次工作?
If you look at this page http://ccc.allthingswebdesign.com/index.php/patterns/29 There is an image that if you click on it should open in a fancybox window. In fact it used to until I upgraded to the newest version of fancybox and now it's broken. Can anyone help me figure out what I need to do to get it working again?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
只是想知道这个脚本是否对 fancybox 产生任何噪音,
您可以禁用它来验证这一点吗?
更新:
我将您的问题缩小到这两个脚本 http://ccc。 allthingswebdesign.com/assets/js/jquery.validate.min.js 和 http://ccc.allthingswebdesign.com/assets/js/contactForm.js ...如果删除它们,那么 fancybox 就可以工作。我的猜测是,由于该页面中不存在选择器#CommentForm,验证脚本会破坏 fancybox 代码。我想您可以应用
php
过滤器来仅在联系页面中加载这些脚本。Just wonder if this script is making any noise to fancybox
Could you disable it to verify that?
UPDATE:
I narrowed down your issue to these two scripts http://ccc.allthingswebdesign.com/assets/js/jquery.validate.min.js and http://ccc.allthingswebdesign.com/assets/js/contactForm.js ... if you remove them, then fancybox works. My guess is that since the selector
#CommentForm
doesn't exist in that page, the validation script breaks the fancybox code. I guess you could apply aphp
filter to load those scripts in the contact page only.