您好,我使用的是shadow box -一切都很好,但我在一个页面上有两个用途,一个是人们连续滚动图像的图库,另一个是表单的iframe。
如何从iframe中删除“下一步”和“上一步”按钮,而不是从库中删除
Shadowbox.init({
displayCounter: false,
continuous: true <- need to disable for iframe only
});iframe:
<a rel="shadowbox[contact];width=420;height=520" href="contact.php?profileID=">Click here</a>画廊
<a rel="shadowbox[trader]" href="<?php echo $images[0]; ?>">Click here</a>
<a rel="shadowbox[trader]" href="<?php echo $images[1]; ?>">Click here</a>
<a rel="shadowbox[trader]" href="<?php echo $images[2]; ?>">Click here</a>发布于 2012-11-07 20:33:09
你看过docs和usage section了吗?你不需要多个脚本--那只会引起问题,而且完全没有必要。
相反,不要使用init()函数,而使用setup()函数。类似这样的东西应该可以工作(为了让这个代码片段工作,你需要在你的链接上使用相应的类):
Shadowbox.init({
displayCounter: false
});
Shadowbox.setup("a.noniframe", {
continuous: true
});
Shadowbox.setup("iframe a", {
continuous: false
});https://stackoverflow.com/questions/13269690
复制相似问题