jQuery thickbox iframe与目标div

时间:2011-12-09 15:05:37

标签: jquery iframe inline target thickbox

我正在尝试从<div>内的页面加载特定的iframe个ID。就像iframed内容和内联内容的组合一样..厚盒子可以吗?

类似的东西:

  

&LT;一个   href =“/ somepage.php ?KeepThis = true&amp; TB_iframe = true&amp; inlineId = SomeDIV-ID ”class =“thickbox”/&gt;

1 个答案:

答案 0 :(得分:0)

正如上面提到的Mathletics,不再支持Thickbox。他提到的其中一个引擎/脚本是colorbox(我最喜欢的一个),可以在这里看到:

http://jacklmoore.com/colorbox/

当您浏览页面时,您会注意到其中一个选项是:

inline:如果为true,则可以通过将href属性传递给jQuery选择器或jQuery对象来显示当前文档中的内容。

// Using a selector:
$("#inline").colorbox({inline:true, href:"#myForm"});

我会尝试使用colorbox来达到你想要的效果。 (它也支持iFrames)