Jquery 配置阴影盒?
您好,我正在使用shadow box-一切正常,但我有两种用途,一种是图库,人们可以在其中连续滚动图像,另一种是表单的iframe 如何从iframe而不是库中删除“下一步”和“上一步”按钮Jquery 配置阴影盒?,jquery,html,Jquery,Html,您好,我正在使用shadow box-一切正常,但我有两种用途,一种是图库,人们可以在其中连续滚动图像,另一种是表单的iframe 如何从iframe而不是库中删除“下一步”和“上一步”按钮 Shadowbox.init({ displayCounter: false, continuous: true <- need to disable for iframe only }); Shadowbox.init({ displayCounter:false, continu
Shadowbox.init({
displayCounter: false,
continuous: true <- need to disable for iframe only
});
Shadowbox.init({
displayCounter:false,
continuous:true您是否查看了和?您不需要多个脚本-这只会导致问题,完全没有必要
相反,不要使用init()
函数,而是使用setup()
函数。类似的功能应该可以工作(要使此代码段工作,您需要链接上相应的类):
<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>
Shadowbox.init({
displayCounter: false
});
Shadowbox.setup("a.noniframe", {
continuous: true
});
Shadowbox.setup("iframe a", {
continuous: false
});