JavaScript对话框 jsdialog
fmms
13年前
<p>jsdialog 是一个简单的JavaScript对话框,弹出的对话框可拖动。</p> <p><img alt="JavaScript对话框 jsdialog" src="https://simg.open-open.com/show/33a969aac7528fcfc043b50d0fb7fd8f.png" width="361" height="145" /></p> <p>使用代码:</p> <pre class="brush:javascript; toolbar: true; auto-links: false;">function ShowCallBack(opt) { opt.obj.close(); } function ShowAlert() { var pop=new txooo.ui.Popup({ contentType:4,isReloadOnClose:false,width:340,height:100}); pop.setContent("title","alert警告框示例"); pop.setContent("alertCon", "alert对话框内容"); pop.setContent("callBack", ShowCallBack); pop.setContent("parameter", { id: "divCall", str: "点击确定后显示的字符串", obj: pop }); pop.build(); pop.show(); }</pre> <p><strong>项目主页:</strong><a href="http://www.open-open.com/lib/view/home/1323613023624" target="_blank">http://www.open-open.com/lib/view/home/1323613023624</a></p> <p></p>