1

您好,我正在使用阴影框 - 一切正常,但我在一页上有两种用途,一种是人们连续滚动浏览图像的画廊,另一种是用于表单的 iframe。

如何从 iframe 但不从图库中删除下一个和上一个按钮

Shadowbox.init({
    displayCounter: false,
    continuous: true <- need to disable for iframe only
});

框架:

<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>
4

1 回答 1

0

Did you take a look into the docs and the usage section? You don't need multiple scripts - that would only cause problems and is completely unnecessary.

Instead, leave the init() function alone and use the setup() function. Something like this should work (for this snippet to work you need the according class on you links):

Shadowbox.init({
    displayCounter: false
});

Shadowbox.setup("a.noniframe", {
      continuous: true
});

Shadowbox.setup("iframe a", {
      continuous: false
});
于 2012-11-07T12:33:09.000 回答