代码示例1:
function publish(){ $.ligerDialog.open({ url: 'k.html', height: 200, width: null, buttons: [ { text: '确定', onclick: function () { window.location.href='publishsuccessful.html'; } }, { text: '取消', onclick: function (item, dialog) { dialog.close(); } } ] });
}
效果展示:
代码示例2:
function buban(){ $.ligerDialog.prompt('请输入v宝密码','', function (yes,value) { if(yes) window.location.href='replacecertificate.html'; }); }
效果展示:
代码示例3:
function change(){ $.ligerDialog.confirm('确定取消出售?', function (yes) { if(yes){ var textId = document.getElementById('cancel'); textId.innerText = "取消"; } }); }
效果展示:
注意问题:
- 需引入ligerUI相关js与cs文件
<link href="lib/ligerUI/skins/Aqua/css/ligerui-all.css" rel="stylesheet" type="text/css" /> <link href="lib/ligerUI/skins/Gray/css/all.css" rel="stylesheet" type="text/css" /> <script src="lib/jquery/jquery-1.5.2.min.js" type="text/javascript"></script> <script src="lib/ligerUI/js/core/base.js" type="text/javascript"></script> <script src="lib/ligerUI/js/plugins/ligerDrag.js" type="text/javascript"></script> <script src="lib/ligerUI/js/plugins/ligerDialog.js" type="text/javascript"></script> 2.关于lib内容见 http://dbank.vmall.com/netdisk/index.html?v=2.8.3c#/我的网盘/jQuery
地址中ligerui.rar中source目录下
3.