[英]How to send user to home page if escape key clicked on JQuery modal dialog box
[英]How to load modal dialog box while loading the home page of website?
我的网站首页加载后如何显示模式对话框,在对话框中有两个字段,一个用于电子邮件地址,另一个用于密码,还有注册和忘记密码的选项,我正在使用magento应用程序,我正在尝试写onLoad( )事件在我的第一页的body标签下加载,但在浏览器上看不到更改。 我只想在网站主页加载后,立即出现对话框,以便只有注册用户才能看到我网站内的内容。
提前致谢!!
这就是你需要的演示
在这里您可以找到如何使用它http://jqueryui.com/demos/dialog/
只需添加div
<div id="example" class="xyz" title="This is my title">
I'm in a dialog!
</div>
脚本:
$(document).ready(function(){
$("#example").dialog({modal: true});
});
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.