0
的fancybox的畫廊我有一個可以正常使用一個的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>
<? } ?>
沒有工作! –
爲什麼你不提供一個問題樣本的鏈接?我們可以幫助你更好。 – JFK
www.wearsitbest.com/viewcontestants.php –