lhgdialog/index.html
(开头部分) 22KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<title>lhgdialog - samples</title>
<style type="text/css">
.contain{padding:10px 50px;}
.contain h2{font-size:18px;color:#1E9300;padding-top:8px;margin-bottom:8px;cursor:pointer;}
.contain h3{margin-top:8px;margin-bottom:8px;FONT:bold 14px 宋体,tahoma,arial,sans-serif;COLOR:#0033CC;}
.contain span{ color: #00f; }
.contain b{ color: #f00; }
.contain div{ line-height: 150%; }
.contain .code{border:1px solid #ccc;background-color:#f7f7f7;padding:3px 5px;}
.contain table{font-weight:normal;}
.contain .content table td{padding:3px;background-color:#fff;}
.contain th{text-align:center;padding:3px;background-color:#ccc;}
.contain #headerMain{ font:12px Verdana, Arial, sans-serif; border-bottom:1px dotted #00f; height:20px; }
</style>
<link type="text/css" href="lhgdialog.css" rel="stylesheet"/>
<script type="text/javascript" src="lhgcore.min.js"></script>
<script type="text/javascript" src="lhgdialog.js"></script>
<script type="text/javascript">
J(function(){
J('#a').dialog({ title: '示例', cover: true, rang: true, resize: false, html: '<p>lhgdialog</p>' });
J('#b').dialog({ id: 'd1', title: '外部链接', page: 'http://www.baidu.com', link: true, btns: false, width: 700, height: 500 });
J('#c').dialog({ id: 'd2', title: '内部链接', page: '_content/01.html' });
J('#d').dialog({ id: 'd3', title: '随屏滚动', html: '<p align="center">lhgdialog</p>', fixed:true, top:'bottom', left:'right', width: 200, height: 100, btns: false });
J('#e').dialog({ id: 'd4', page: '_content/02.html' });
J('#f').dialog({ id: 'd5', page: '_content/03.html', cover: true });
J('#g').dialog({ id: 'd6', page: '_content/04.html' });
var resize = function()
{
J('#inp',dialog.dlg).click(function(){
dialog.reDialogSize( 300, 200 );
});
};
var dialog = J('#h').dialog({ id: 'd7', html: '<input id="inp" type="button" value="改变窗口大小"/>', cusfn: resize });
var dialog1 = J('#i').dialog({
id: 'd8',
html: '<p>lhgdialog</p>',
cusfn: function()
{
J('#xbtn',dialog1.dlg).click(function(){
alert( '此按钮的函数已被改变,不再关闭窗口了!' );
});
dialog1.addBtn( 'cancel', '取消', dialog1.cancel );
}
});
ShowIt();
});
function ShowIt()
{
var h2 = J('h2');
for( var i = 0, l = h2.length; i < l; i++ )
{
h2[i].cusIndex = i;
后面还有 396 行代码,购买后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明
AI 解读 AI
登录后可用,每次 10 积分,解读结果公开显示在下面。
还没有人解读过这个文件。
