开发者

Facebox not loading image

I'm using Facebox for my popups.

However when loading big pictures it shows the Facebox but without the spinning circle.

The "Facebox loading" thread has this solut开发者_运维百科ion:

$("#test2").click(function(){ 
       $.facebox(function() { 
            $.facebox.loading(); 
            $.get('whatever.php', function(data) { 
                    $.facebox.close_loading(); 
                            $.facebox(data); 
                            }) 
            }) 
       }) 

However I can't get this properly implemented for images.


I had the same problem. It appears to be a bug due to the new layout.

I made the changes in the loading function, from the facebox.js:

FROM:

  $('#facebox .body').children().hide().end()

TO:

  $('#facebox .content').children().hide().end()
0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜