升级到 fancybox 版本 2,现在 fancybox 不再花哨了

发布于 2025-01-07 16:31:46 字数 312 浏览 4 评论 0原文

如果您查看此页面 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

旧人九事 2025-01-14 16:31:46

只是想知道这个脚本是否对 fancybox 产生任何噪音,

$("a.img").hover( function () {
 if (jQuery.browser.msie && parseInt(jQuery.browser.version, 10) <= 8) {
  $(this).stop(false, true).toggleClass('imgHover');
 } else {
  $(this).stop(false, true).toggleClass('imgHover', 200);
 }
});

您可以禁用它来验证这一点吗?

更新:

我将您的问题缩小到这两个脚本 http://ccc。 allthingswebdesign.com/assets/js/jquery.validate.min.jshttp://ccc.allthingswebdesign.com/assets/js/contactForm.js ...如果删除它们,那么 fancybox 就可以工作。我的猜测是,由于该页面中不存在选择器#CommentForm,验证脚本会破坏 fancybox 代码。我想您可以应用 php 过滤器来仅在联系页面中加载这些脚本。

Just wonder if this script is making any noise to fancybox

$("a.img").hover( function () {
 if (jQuery.browser.msie && parseInt(jQuery.browser.version, 10) <= 8) {
  $(this).stop(false, true).toggleClass('imgHover');
 } else {
  $(this).stop(false, true).toggleClass('imgHover', 200);
 }
});

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 a php filter to load those scripts in the contact page only.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文