2

我有一个fancybox iframe,有没有办法在点击打开链接之前预加载iframe的内容?iframe 内容是脚本,而不是图像。

脚本:

$("a.fancybox").fancybox({ 
fitToView: false, 
afterLoad: function(){
this.width = $(this.element).data("width");
this.height = $(this.element).data("height"); }
});

HTML:

<a class="fancybox fancybox.iframe" data-width="950" data-height="90%" href="/?page_id=1508" >MLS® SEARCH</a>

谢谢!

4

0 回答 0