开发者

When using Shadowbox, how to keep the "loading ..." div displaying until the page is fully loaded?

I'm using shadowbox to open a page when a link is clicked and it does ope开发者_StackOverflow社区n the page when the link is clicked.

The problem is that "Loading ..." icon appears for 1 second then disappears whereas my page takes about 5 seconds to load.

How to keep the "loading ..." div displaying until the page is fully loaded and ready?

Many thanks,


Shadowbox.init({                
            onFinish: shadowboxFinish               
        });

then

function shadowboxFinish() {

            $("#sb-loading").show();

            $("#sb-player").load(function () {

                $("#sb-loading").hide();
             });               
        }
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜