我在jquery中使用fancybox函数。我打开loign框点击一个标签,并在其href属性中调用登录框html,我spepartly有登录框html在其中我有另一个链接名称“注册”在这个我打电话给另一个fancybox,我想刷新其关闭页面。但这并不令人满意。这里是低于jquery fancybox弹出定制?
$(".login").fancybox({
'padding': 0,
'margin': 0,
'width': '45',
'height': '480.0',
'autoScale': false,
'transitionIn': 'none',
'transitionOut': 'none',
'type': 'iframe'
});
$(".register").fancybox({
'padding': 0,
'margin': 0,
'width': '45',
'height': '480.0',
'autoScale': false,
'transitionIn': 'none',
'transitionOut': 'none',
'type': 'iframe',
'onClosed' : function() { self.parent.location.reload(); }
});
<a href="login.html" class="login">login</a>
//inside login.html (it is showing on when popup comes)
<a href="register.html" class="register">register</a> // register class not applying of this, it is coming under login class
任何一个可以解决这个问题 – Carlos 2012-03-22 09:28:24