我想在会员注册后显示一个弹出框,类似于jQuery popup。我想在弹出框中包含一个按钮,这样我就不能使用警报功能。
下面是我当前的代码:
if($_SESSION['msg']['reg-success'])
{
echo '<div class="success">'.$_SESSION['msg']['reg-success'].'</div>';
unset($_SESSION['msg']['reg-success']);
}
发布于 2012-06-27 13:00:20
您应该使用Noty。我相信这就是你要找的东西。然而,你将不得不摆弄源代码,以准确地做你的网站在用户注册后要做的事情。
$('#form').submit(function() {
noty({
text: "Display your message HERE",
buttons: [
{type: 'button green', text: 'Enter your text for the button HERE', click: function($noty) {
$noty.close();
**doSomethingHere()**
}
},
{type: 'button pink', text: 'Enter your text for the button HERE', click: function($noty) {
$noty.close();
**doSomethingHere()**
}
}
],
closable: false,
timeout: false
});
return false;
});
如果你打算使用它,请让我知道你是否需要帮助。您必须将源代码包含在您的站点中,然后才能运行。单击here获取您的站点的安装帮助
https://stackoverflow.com/questions/11219616
复制相似问题