2011-03-23 64 views

回答

6

您可以通過調用打開和關閉裝載圖形:

$('#cboxLoadingGraphic').show(); 

$('#cboxLoadingGraphic').hide(); 

在我的應用我稱之爲表演方法在函數調用的開始,那麼當ajax調用返回時隱藏方法。

+0

我不得不打電話$( 「#cboxLoadingOverlay」)顯示()。而不是$('#cboxLoadingGraphic')。show(); – 2017-08-08 07:23:24

6

我想你想要的是fastIframe

$("#thediv").colorbox({iframe:true, innerWidth:870, innerHeight:500, fastIframe:false});