Php fancybox投票画廊
我有一个fancybox图库,它工作得很好,但是当我提交投票而不是处理表格时,它会转到下一张图片 fancybox脚本Php fancybox投票画廊,php,fancybox,gallery,voting,Php,Fancybox,Gallery,Voting,我有一个fancybox图库,它工作得很好,但是当我提交投票而不是处理表格时,它会转到下一张图片 fancybox脚本 $(".fancybox-button").fancybox({ prevEffect : 'fade', nextEffect : 'fade', closeBtn : false, helpers : { title : { type :
$(".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>
<? } ?>
添加此API选项
arrows: false,
closeClick: false,
.为什么不提供问题示例的链接?我们可以更好地帮助您。www.wearsitbest.com/viewCompetitives.php当您单击vote me…而不是发布表单…它将移动到下一个桌面您遇到的问题是您正在为fancybox v.2.x使用API选项,但实际上您正在加载fancybox v.1.3.4。升级这两个版本,你的jQuery和Fancybox版本,那么你的代码应该可以正常工作谢谢我已经升级到jQuery 1.7和Fancybox 2.0…我现在得到的页面无法加载????