0
我想用不同的功能,當我的花哨的盒子關閉使用關閉按鈕,當我的幻想關閉時,交易成功。fancybox不同的關閉功能
我使用parent.$.fancybox.close();
當交易成功,我希望它顯示一條警告消息時,關閉該花式框。而當花式使用關閉的按鈕關閉時,我不希望提示消息提示。這有可能發生嗎?
這是我父屏幕代碼:
$(document).ready(function() {
$(".popup").fancybox({
'scrolling' : 'no',
'autoScale' : true,
'transitionIn' : 'none',
'transitionOut' : 'none',
'type' : 'iframe',
'closeClick' : false,
'autoDimensions' : true,
'width' : 1000,
'centerOnScroll' : true,
'onComplete' : function() {
$('#fancybox-frame').load(function() {
$('#fancybox-content').height($(this).contents().find('body').height());
});
},
'onClosed' : function() {alert("Successful!"); }
});
});
,但它仍然顯示警告消息,無論是使用關閉按鈕或交易成功關閉。
它的工作原理!謝謝! :) – user4687994 2015-03-19 07:07:55