我有一个完美的fancybox画廊,但是当我提交投票而不是处理表格时,它会转到下一张图片
fancybox脚本
$(".fancybox-button").fancybox({
prevEffect : 'fade',
nextEffect : 'fade',
closeBtn : false,
helpers : {
title : { type : 'inside' },
buttons : {}
}
});
HTML页面
<div class="showContestant"><a class="fancybox-button" rel="fancybox-button" href="viewDetail.php?id=1" title="Fine Gal One">
<img src="images/pix1.jpg" width="100" /></a></div>
<div class="showContestant"><a class="fancybox-button" rel="fancybox-button" href="viewDetail.php?id=4" title="Fine Gal two">
<img src="images/pix4.jpg" width="100" /></a></div>
<div class="showContestant"><a class="fancybox-button" rel="fancybox-button" href="viewDetail.php?id=2" title="Fine asdfasfasf asfasfasfsadf Gal three">
<img src="images/pix2.jpg" width="100" /></a></div>
PHP页面名为
<? if (isset($_REQUEST['cid'])) { echo 'posted';} else{?>
<form id="form1" name="form1" method="post" action="">
<table width="500" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td align="center"><img src="images/pix<?=$_REQUEST['id'];?>.jpg" width="400" height="400" /><input name="cid" id="cid" type="hidden" value="<?=$_REQUEST['id'];?>" /></td>
</tr>
<tr>
<td>My Picture Description: i am looking great in my red top!!!<br />
Vote this Contestant;</td>
</tr>
<tr>
<td><input type="submit" name="Vote" id="Vote" value="Vote Me!!!" /></td>
</tr>
</table>
</form>
<? } ?>
答案 0 :(得分:0)
添加此API选项
arrows: false,
closeClick: false,