显示fancybox加载图标 [英] Display fancybox loading icon

查看:110
本文介绍了显示fancybox加载图标的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我将fancybox用于iframe时,加载fancybox时不会显示加载图标...

When I use fancybox for iframe, the loading icon isn't displayed while fancybox is loaded...

如何解决此问题?

谢谢.

推荐答案

Fancybox在使用iframe时存在一些错误或问题.

Fancybox have some bugs or problems when using iframes.

您可以编辑源代码(而不是压缩,压缩或缩小的版本)并放置以下代码:

You can edit the source code (not the compressed, packed or minified version) and put this:

$.fn.fancybox.showLoading();

用于在FancyBox 2中显示加载框:

For displaying the loading box in FancyBox 2:

$.fancybox.showLoading()  ;

在此之后:

} else if (href.match("iframe") || elem.className.indexOf ("iframe") >= 0) {

我认为它在第131行,但是我不确定您只需要在源代码中搜索它即可.

I think its in line number 131 but I'm not sure you just need to search for it in the source code.

此解决方案(以及更复杂的解决方案)在Fancybox的支持小组中:

This and nother (more complicated) solutions, are in the support group of Fancybox:

Fancybox iframe加载图标修复程序

加载指示器

或在 Fancybox支持组中进行搜索.

好看!

这篇关于显示fancybox加载图标的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆