我搜索了很多,但我找不到答案。如何使用fancybox加載php頁面?
在我contact.php我有這樣的代碼:
<a class="mailform" href="submit.php">Click</a>
我有這樣的劇本,但它不工作:
$('.mailform').click(function() {
$.fancybox(
{
'autoDimensions' : false,
'width' : 350,
'height' : 'auto',
'transitionIn' : 'none',
'transitionOut' : 'none',
'ajax' : {
cache : false,
url : this.href
}
}
);
});
你能幫助我嗎?
你需要更具體的關於「不工作」 – BenOfTheNorth 2012-04-04 11:47:34
應該在網頁「submit.php」中的fancybox加載以下停止鏈接? – JFK 2012-04-04 16:16:14