-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
832 lines (822 loc) · 25.3 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
<!DOCTYPE HTML>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>lhgDialog 4.0.0 beta1 版本测试</title>
<link type="text/css" rel="stylesheet" href="demo/js/prettify/prettify.css" />
<link type="text/css" rel="stylesheet" href="demo/js/demo.css" />
<script src="demo/js/jquery-1.7.min.js" type="text/javascript"></script>
<script src="demo/js/prettify/prettify.js" type="text/javascript"></script>
<script type="text/javascript">
// JavaScript Document
var _search = window.location.search,lhg_skins,_Skin_tmpl;
if(_search){
lhg_skins = _search.split("=")[1];
}
document.write('<scr'+'ipt src="lhgdialog.js?skin=' + (lhg_skins || 'default') +'"></sc'+'ript>');
var _Skin_tmpl = function (data) {
var html = ['<table class="skintabs" style="width:480px"><tbody>'];
for (var i = 0, length = data.length; i < length; i ++) {
html.push('<tr class="');
html.push(i%2 ? 'odd' : '');
html.push('"><th style="width:7em"><a href="?skin=');
html.push(data[i].name);
html.push('">');
html.push(data[i].name);
html.push('</a></th><td>');
html.push(data[i].about);
html.push('</td></tr>');
};
html.push('</tbody></table>');
return html.join('');
}([
{ name: 'default', about: '默认皮肤,简单的纯CSS灰色皮肤。' },
{ name: 'qq2011', about: '仿QQ2011弹出窗口的蓝色渐变皮肤,纯CSS' },
{ name: 'blue', about: '蓝色简约风格皮肤,大气十足,纯CSS' },
{ name: 'discuz', about: 'discuz论坛极简皮肤,相当实用,纯CSS' },
{ name: 'idialog', about: '苹果电脑风格的弹窗皮肤,很不错的(包含图片)' }
]);
/** 多皮肤演示 */
function sk1(){
var a = $.dialog({
id: "sk1",
title: "丰富多彩的皮肤",
content: _Skin_tmpl
});
}
/** 窗口参数DEMO演示 */
function op1(){
var a = $.dialog();
}
function op2(){
var a = $.dialog({ id:'a1'}).lock(function(){ a.close(); });
}
function op3(){
var a = $.dialog({
id: "a2" ,
content: "我是HTML内容<a href='http://www.baidu.com'>百度</a>"
});
}
function op3_1(){
var a = $.dialog({
id: "a3_1" ,
title: "欢迎使用手机帐族",
content: "url:http://m.zonezu.com/",
width: 300,
height: 400,
minWidth: 320,
minHeight: 450
});
}
function op3_2(){
var a = $.dialog({
id: "a3_2" ,
title: "欢迎使用百度搜索",
content: "url:http://www.baidu.com/",
width: 800,
height: 550
});
}
function op3_3(){
var a = $.dialog({
id: "a3_3" ,
title: "欢迎使用腾讯QQ",
content: "url:http://www.qq.com/",
width: 850,
height: 550
});
}
function op4(){
var a = $.dialog({
id: "a3" ,
content: "我是HTML内容",
title: "我是新的Title"
});
}
function op55(){
var a = $.dialog({
id: "a_icon" ,
titleIcon: "lhg.png",
content: "我可以自由定制标题栏小图标哦",
title: "看我左边的图标"
});
}
function op5(){
var timer = 3;
var a = $.dialog({
id: "a5" ,
content: "我是HTML内容",
button: [
{
name:"上一步",
callback: function () {
this.content("这是上一步的内容");
return false;
},
focus: true
},
{
name:"下一步",
callback: function () {
this.content('你点击了下一步,3秒后关闭');
this.time(timer, function(){
$.dialog.list["a5"].title("窗口将在 " + timer-- + " 秒后关闭");
});
return false;
}
},
{
name: "无效按钮",
disabled: true
}
]
});
}
function op6(){
var a = $.dialog({
id: "a6" ,
content: "我是HTML内容",
ok: function(){
alert("你点击了确定按钮");
this.content("通过返回值true,执行默认函数,返回false,可以阻止窗口关闭");
return false;
},
okVal:"我是OK按钮"
});
}
function op7(){
var a = $.dialog({
id: "a7" ,
content: "我是HTML内容,我只有一个取消按钮,右上角关闭按钮,和右下角取消按钮,同属一个函数控制。",
cancel:function(){
alert("你点击了取消按钮");
},
cancelVal:"我是取消按钮"
});
}
function op8(){
var a = $.dialog({
id: "a8" ,
content:"init对话框初始化后执行的函数",
init:function(){
alert("我是对话框初始化执行的函数");
}
});
}
function op9(){
var a = $.dialog({
id: "a9",
content: "对话框关闭前可执行回调函数close",
close:function(){
alert("等我执行完了才关闭,可用户关闭后刷新父页面");
}
});
}
function op10(){
var a = $.dialog({
id: "a10",
content: "可以同时使用多套皮肤哦,这个是新的皮肤",
skin:"我是全新的4.0.0皮肤"
});
}
function op11(){
var a = $.dialog({
id: "a11",
content: "注意看focus焦点到按钮上了",
button: [
{
name: "我是一个普通按钮",
focus: true,
callback: function(){
alert("焦点在我身上");
return false;
}
}
]
});
}
function op12(){
var a_op12 = $.dialog({
id: "a12",
content: "我显示出来了哦"
});
}
function op12_1(){
$.dialog.list["a12"].hide();
}
function op12_2(){
$.dialog.list["a12"].show().time(3);
}
function op13(){
var a = $.dialog({
id: "a13",
content: "可以通过width和height指定初始宽度和高度,默认为auto(根据内容自动调整)<br/><br/>单位支持px(默认)和%(百分比)",
width: '300px',
height: '80%'
});
}
function op14(){
var a = $.dialog({
id: "a14",
content: "通过minwidth和minheight可设置最小宽度和最小宽度,<br/><br/>默认值( minWidth: 96,minHeight: 32)",
width: 200,
height: 200,
minWidth: 300,
minHeight: 300
});
}
function op15(){
var a = $.dialog({
id: "a15" ,
lock: true ,
title: "Android4.0照片",
content: "<img src='demo/js/android.jpg' width='600' height='404' />",
padding: 0
});
}
function op16(){
var a = $.dialog({
id: "a16",
title: "系统消息",
content: "这是一个警告消息",
icon:"warning.png"
});
}
function op16_0(){
var a = $.dialog({
id: "a16_0",
title: "系统消息",
content: "您有一个新的消息",
icon:"msg.png"
});
}
function op16_1(){
var a = $.dialog({
id: "a16_1",
title: "系统消息",
content: "这是一个正确消息",
icon:"ok.png"
});
}
function op16_2(){
var a = $.dialog({
id: "a16_2",
title: "系统消息",
content: "欢迎订阅本站RSS消息",
icon:"rss.png"
});
}
function op16_3(){
var a = $.dialog({
id: "a16_3",
title: "系统消息",
content: "您的账户已锁定",
icon:"lock.png"
});
}
function op17(){
var a = $.dialog({
id: "a17",
title: "键盘ESC按键",
content: "当对话框获得焦点时,按下ESC键可以关闭对话框, esc参数默认是true",
esc: true
});
}
function op18(){
var a = $.dialog({
id: "a18",
title: "屏幕已锁定",
content: "lock:true ,锁定屏幕",
lock: true,
ok:function(){
this.unlock();
return false;
},
okVal:"点击这里解锁屏幕"
});
}
function op18_1(){
var a = $.dialog({
id: "a18_1",
title: "屏幕已锁定",
content: "lock可以通过一个回调函数,来实现双击遮罩层时执行的事件",
background: "#F00",
opacity: .3
}).lock(function(){
alert("我是一个回调函数");
});
}
function op19(){
var a = $.dialog({
id: "a19",
title: "静止定位",
content: "静止定位,支持IE6下静止定位,不随浏览器滚动条滚动,不闪烁; fixed 默认为false",
fixed: true,
height: 200
});
}
function op20(){
var a = $.dialog({
id: "a20",
title: "坐标定位",
fixed: true,
content: "通过X(left)坐标和Y(top)坐标来定位",
left: "0%",
top: "0%"
});
}
function op20_1(){
var a = $.dialog({
id: "a20_1",
title: "坐标定位",
fixed: true,
content: "通过X(left)坐标和Y(top)坐标来定位",
left: "100%",
top: "100%"
});
}
function op21(){
var a = $.dialog({
id: "a21",
content: "对话框叠加高度值(重要:此值不能超过浏览器最大限制)zIndex 默认值是1976",
zIndex: 20000,
width: "50%",
height: "50%"
});
}
function op22(){
var a = $.dialog({
id: "a22",
content: "resize : 是否允许用户调节尺寸,默认是true",
resize : false
});
}
function op23(){
var a = $.dialog({
id: "a23",
content: "drag : 是否允许用户拖动位置,默认是true",
drag : false
});
}
function op24(){
var a = $.dialog({
id: "a24",
content: "cache : 是否缓存窗口内容页,默认是true",
cache : false
});
}
function op25(){
var a = $.dialog({
id: "a25",
content: "可在窗口初始化时作为参数使用,定时关闭",
time: 3
});
}
function op25_1(){
var a = $.dialog({
id: "a25_1",
content: "将time作为函数调用时,可支持一个回调函数"
}).time(3, function(){
this.title("窗口将在3秒后关闭");
});
}
function op26(){
var a = $.dialog({
id: "a26",
content: "我没有最大化和最小化按钮,默认支持,你可以更改默认参数配置哦,我可已做为强制登录框,我连关闭也隐藏了哦",
title:"支持最大最小化功能",
min: false,
max: false
})
}
</script>
</head>
<body>
<div class="title_top r5px">
<ul>
<li class="button orange"><a target="_blank" href="http://bbs.lhgcore.com/">返回论坛</a></li>
<li class="button blue"><a target="_blank" href="http://bbs.lhgcore.com/thread-49-1-1.html">返回帖子</a></li>
<li class="button blue"><a target="_blank" href="http://bbs.lhgcore.com/thread-51-1-1.html ">提交Bug</a></li>
<li class="button green"><a href="index.html">在线演示</a></li>
<li class="button blue"><a href="demo/extents.html">扩展演示</a></li>
<li class="button blue"><a href="demo/valuedemo.html">传值演示</a></li>
<li class="button blue"><a href="javascript:;" onclick="sk1()">切换皮肤</a></li>
<li class="button orange"><a href="api/api.html" target="_blank">API文档</a></li>
</ul>
</div>
<div class="container r5px">
<div id="gads">
<script type="text/javascript"><!--
google_ad_client = "ca-pub-4209163873016654";
/* gads_demo_首页1 */
google_ad_slot = "7928197413";
google_ad_width = 728;
google_ad_height = 90;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
</div>
<div class="header"><h1 class="colb f1"><span class="colr">lhgDailog4正式发布beta1版本,</span>感谢大家长期的支持。</h1></div>
<div class="article">
<h2>窗口的各种在线演示示例</h2>
<p>多皮肤共存</p>
<ol>
<li>
<h3>多皮肤演示</h3>
<pre class="prettyprint">
var a = $.dialog({
id: "sk1",
title: "丰富多彩的皮肤",
titleIcon: "lhg.png",
content: _Skin_tmpl,
}); </pre>
<button class="button orange" onclick="sk1()">切换皮肤»</button>
</li>
</ol>
<p>常规配置参数使用演示</p>
<ol>
<li>
<h3>普通调用,不带参数</h3>
<pre class="prettyprint">
var a = $.dialog();</pre>
<button class="button green" onclick="op1()">运行»</button>
</li>
<li>
<h3>设置ID值,防止重复弹出,更便于日后取得窗口对象</h3>
<pre class="prettyprint">
var a = $.dialog({ id: "a1", lock:true });</pre>
<button class="button green" onclick="op2()">运行»</button>
</li>
<li>
<h3>支持HTML内容,支持page外部页面<span class="colr">(*)</span></h3>
<pre class="prettyprint">
/** content: html内容 */
var a = $.dialog({
id: "a2" ,
content: "我是HTML内容"
}); </pre>
<button class="button green" onclick="op3()">运行»</button>
<button class="button blue" onclick="op3_2()">运行百度首页»</button>
<button class="button blue" onclick="op3_3()">运行腾讯首页»</button><span class="colr">(增强拖动体验只能全局配置:extendDrag: true)</span>
<pre class="prettyprint">
/** content: url:外部页面 */
var a = $.dialog({
id: "a3_1" ,
title: "欢迎使用手机帐族",
content: "url:http://m.zonezu.com/",
width: 200,
height: 200,
minWidth: 320,
minHeight: 450
}); </pre>
<button class="button green" onclick="op3_1()">运行»</button>
</li>
<li>
<h3>通过title属性更改标题内容</h3>
<pre class="prettyprint">
var a = $.dialog({
id: "a3" ,
content: "我是HTML内容",
title: "我是新的Title"
}); </pre>
<button class="button green" onclick="op4()">运行»</button>
</li>
<li>
<h3>可以自由设置titleIcon参数,改变标题栏左上角的图标</h3>
<pre class="prettyprint">
var a = $.dialog({
id: "a_icon" ,
titleIcon: "",
content: "我可以自由定制标题栏小图标哦",
title: "看我左边的图标"
}); </pre>
<button class="button green" onclick="op55()">运行»</button>
</li>
<li>
<h3>添加自定义按钮</h3>
<pre class="prettyprint">
var a = $.dialog({
var timer = 3;
id: "a5" ,
content: "我是HTML内容",
button: [
{
name:"上一步",
callback: function () {
this.content("这是上一步的内容");
return false;
},
focus: true
},
{
name:"下一步",
callback: function () {
this.content('你点击了下一步,3秒后关闭');
this.time(timer, function(){
$.dialog.list["a5"].title("窗口将在 " + timer-- + " 秒后关闭");
});
return false;
}
},
{
name: "无效按钮",
disabled: true
},
]
}); </pre>
<button class="button green" onclick="op5()">运行»</button>
</li>
<li>
<h3>确定按钮回调函数,可通过okVal改变ok按钮的文本</h3>
<pre class="prettyprint">
var a = $.dialog({
id: "a5" ,
content: "我是HTML内容",
ok: function(){
alert("你点击了确定按钮");
this.content("通过返回值true,执行默认函数,返回false,可以阻止窗口关闭");
return false;
},
okVal:"我是OK按钮"
}); </pre>
<button class="button green" onclick="op6()">运行»</button>
</li>
<li>
<h3>取消按钮回调函数,可通过cancelVal改变cancel按钮的文本</h3>
<pre class="prettyprint">
var a = $.dialog({
id: "a7" ,
content: "我是HTML内容,我只有一个取消按钮,右上角关闭按钮,和右下角取消按钮,同属一个函数控制。",
cancel:function(){
alert("你点击了取消按钮");
},
cancelVal:"我是取消按钮"
}); </pre>
<button class="button green" onclick="op7()">运行»</button>
</li>
<li>
<h3>对话框初始化后执行的函数 init</h3>
<pre class="prettyprint">
var a = $.dialog({
id: "a8" ,
content:"init对话框初始化后执行的函数",
init:function(){
alert("我是对话框初始化执行的函数");
}
}); </pre>
<button class="button green" onclick="op8()">运行»</button>
</li>
<li>
<h3>对话框关闭前执行的函数</h3>
<pre class="prettyprint">
var a = $.dialog({
id: "a9",
content: "对话框关闭前可执行回调函数close",
close:function(){
alert("等我执行完了才关闭,可用户关闭后刷新父页面");
}
}); </pre>
<button class="button green" onclick="op9()">运行»</button>
</li>
<li>
<h3>skin,多皮肤支持</h3>
<pre class="prettyprint">
var a = $.dialog({
id: "a10",
content: "可以同时使用多套皮肤",
skin:"我是全新的4.0.0皮肤"
}); </pre>
<button class="button green" onclick="op10()">运行»</button>
</li>
<li>
<h3>是否支持对话框按钮聚焦,默认是true</h3>
<pre class="prettyprint">
var a = $.dialog({
id: "a11",
content: "注意看focus焦点到按钮上了",
button: [
{
name: "我是一个普通按钮",
focus: true,
callback: function(){
alert("焦点在我身上");
return false;
}
}
]
}); </pre>
<button class="button green" onclick="op11()">运行»</button>
</li>
<li>
<h3>可以自由控制对话框的显示与隐藏</h3>
<pre class="prettyprint">
function op12(){
var a_op12 = $.dialog({
id: "a12",
content: "我显示出来了哦",
});
}
</pre>
<button class="button green" onclick="op12()">运行»</button>
<button class="button blue" onclick="op12_1()">隐藏»</button>
<button class="button blue" onclick="op12_2()">显示»</button>
</li>
<li>
<h3>可调整宽度和高度</h3>
<pre class="prettyprint">
var a = $.dialog({
id: "a13",
content: "可以通过width和height指定初始宽度和高度,默认为auto(根据内容自动调整),单位支持px(默认)和%(百分比)",
width: '300px',
height: '80%'
}); </pre>
<button class="button green" onclick="op13()">运行»</button>
</li>
<li>
<h3>最小宽度限制和最小高度限制</span></h3>
<pre class="prettyprint">
var a = $.dialog({
id: "a14",
content: "通过minwidth和minheight可设置最小宽度和最小宽度,默认值( minWidth: 96,minHeight: 32)",
width: 400,
height: 300,
minWidht: 200,
minHeight: 200
}); </pre>
<button class="button green" onclick="op14()">运行»</button>
</li>
<li>
<h3>内容与边界填充距离( 注意图片加上width和height,否则出现位置偏移 )</h3>
<pre class="prettyprint">
var a = $.dialog({
id: "a15" ,
title: "Android4.0照片",
lock: true,
content: "<img src='demo/js/android.jpg' width='600' height='404' />",
padding: 0
});
</pre>
<button class="button green" onclick="op15()">运行»</button>
</li>
<li>
<h3>通过icon参数定义消息图标</h3>
<pre class="prettyprint">
var a = $.dialog({
id: "a16",
title: "系统消息",
content: "这是一个普通消息",
icon:"warn"
}); </pre>
<button class="button green" onclick="op16()">运行»</button>
<button class="button green" onclick="op16_0()">运行»</button>
<button class="button green" onclick="op16_1()">运行»</button>
<button class="button green" onclick="op16_2()">运行»</button>
<button class="button green" onclick="op16_3()">运行»</button>
</li>
<li>
<h3>键盘ESC键,按下可关闭当前窗体</h3>
<pre class="prettyprint">
var a = $.dialog({
id: "a17",
title: "键盘ESC按键",
content: "当对话框获得焦点时,按下ESC键可以关闭对话框, esc参数默认是true",
esc: true
}); </pre>
<button class="button green" onclick="op17()">运行»</button>
</li>
<li>
<h3>lock/unlock 锁屏和解开锁屏功能</h3>
<pre class="prettyprint">
var a = $.dialog({
id: "a18",
title: "屏幕已锁定",
content: "lock:true ,锁定屏幕",
lock: true,
ok:function(){
this.unlock();
return false;
},
okVal:"点击这里解锁屏幕"
}); </pre>
<button class="button green" onclick="op18()">运行»</button>
<pre class="prettyprint">
var a = $.dialog({
id: "a18_1",
title: "屏幕已锁定",
content: "通过更改 background: '颜色值' 改变锁屏颜色,默认#000(黑色); 通过opacity: (浮点值) 来调整锁屏的透明度(0.0 —— 1.0之间) ",
lock: true,
background: "#F00",
opacity: .3
}); </pre>
<button class="button green" onclick="op18_1()">运行»</button>
</li>
<li>
<h3>是否静止定位</h3>
<pre class="prettyprint">
var a = $.dialog({
id: "a19",
title: "静止定位",
fixed: true,
content: "静止定位,支持IE6下静止定位,不随浏览器滚动条滚动,不闪烁; fixed 默认为false",
fixed: true,
height: 200
}); </pre>
<button class="button green" onclick="op19()">运行»</button>
</li>
<li>
<h3>通过X(left)坐标和Y(top)坐标来定位</h3>
<pre class="prettyprint">
var a = $.dialog({
id: "a20",
title: "坐标定位",
fixed: true,
content: "通过X(left)坐标和Y(top)坐标来定位",
left: "0%",
top: "0%"
}); </pre>
<button class="button green" onclick="op20()">运行(右上角)»</button>
<button class="button green" onclick="op20_1()">运行(右下角)»</button>
</li>
<li>
<h3></h3>
<pre class="prettyprint">
var a = $.dialog({
id: "a21",
content: "对话框叠加高度值(重要:此值不能超过浏览器最大限制)zIndex 默认值是1976",
zIndex: 20000,
width: "50%",
height: "50%"
}); </pre>
<button class="button green" onclick="op21()">运行»</button>
</li>
<li>
<h3>resize : 是否允许用户调节尺寸</h3>
<pre class="prettyprint">
var a = $.dialog({
id: "a22",
content: "resize : 是否允许用户调节尺寸,默认是true",
resize : false
}); </pre>
<button class="button green" onclick="op22()">运行»</button>
</li>
<li>
<h3>drag : 是否允许用户拖动位置</h3>
<pre class="prettyprint">
var a = $.dialog({
id: "a23",
content: "drag : 是否允许用户拖动位置,默认是true",
drag : false
}); </pre>
<button class="button green" onclick="op23()">运行»</button>
</li>
<li>
<h3>cache : 是否缓存窗口内容页</h3>
<pre class="prettyprint">
var a = $.dialog({
id: "a24",
content: "cache : 是否缓存窗口内容页,默认是true",
cache : false
});</pre>
<button class="button green" onclick="op24()">运行»</button>
</li>
<li>
<h3>time可定时关闭窗口,支持一个回调函数</h3>
<pre class="prettyprint">
var a = $.dialog({
id: "a25",
content: "可在窗口初始化时作为参数使用,定时关闭",
time: 3
});</pre>
<button class="button green" onclick="op25()">运行»</button>
<pre class="prettyprint">
var a = $.dialog({
id: "a25_1",
content: "将time作为函数调用时,可支持一个回调函数"
}).time(3, function(){
this.title("窗口将在3秒后关闭");
});</pre>
<button class="button green" onclick="op25_1()">运行»</button>
</li>
<li>
<h3>是否显示最大化按钮,最小化按钮</h3>
<pre class="prettyprint">
var a = $.dialog({
id: "a26",
content: "我没有最大化和最小化按钮,默认支持,你可以更改默认参数配置哦,我可已做为强制登录框,我连关闭也隐藏了哦",
title:"关闭支持最大最小化功能",
min: false,
max: false,
}) </pre>
<button class="button green" onclick="op26()">运行»</button>
</li>
</ol>
<br/><br/>
<h2>更多API组合DEMO,请自行阅读API之后编写测试。</h2><br/>
<div class="footer"></div>
</div>
<script type="text/javascript">prettyPrint();</script>
<script type="text/javascript" src="demo/js/demo.js"></script>
</body>
</html>