dbda29602e5bf663638184e6d7c069326f239e2d.svn-base 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116
  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  2. <html xmlns="http://www.w3.org/1999/xhtml">
  3. <head>
  4. <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
  5. <title></title>
  6. <!--框架必需start-->
  7. <script type="text/javascript" src="../../libs/js/jquery.js"></script>
  8. <script type="text/javascript" src="../../libs/js/language/cn.js"></script>
  9. <script type="text/javascript" src="../../libs/js/framework.js"></script>
  10. <link href="../../libs/css/import_basic.css" rel="stylesheet" type="text/css"/>
  11. <link rel="stylesheet" type="text/css" id="skin" prePath="../../"/>
  12. <link rel="stylesheet" type="text/css" id="customSkin"/>
  13. <!--框架必需end-->
  14. </head>
  15. <body>
  16. <div class="box1" panelWidth="800">
  17. <fieldset>
  18. <legend>1、基本使用</legend>
  19. <div style="border:solid 1px #cccccc;padding:10px;width:300px;" id="content1">
  20. 要遮罩的内容<br/>
  21. <img src="../../libs/images/demo/demo1.jpg"/>
  22. </div>
  23. <input type="button" value="开启遮罩" onclick="openMask1()"/>
  24. <input type="button" value="关闭遮罩" onclick="closeMask1()"/>
  25. </fieldset>
  26. <div class="height_15"></div>
  27. <fieldset>
  28. <legend>2、添加提示语</legend>
  29. <div style="border:solid 1px #cccccc;padding:10px;width:300px;" id="content2">
  30. 要遮罩的内容<br/>
  31. <img src="../../libs/images/demo/demo1.jpg"/>
  32. </div>
  33. <input type="button" value="开启遮罩" onclick="openMask2()"/>
  34. <input type="button" value="关闭遮罩" onclick="closeMask2()"/>
  35. </fieldset>
  36. <div class="height_15"></div>
  37. <fieldset>
  38. <legend>3、延时遮罩</legend>
  39. <div style="border:solid 1px #cccccc;padding:10px;width:300px;" id="content3">
  40. 要遮罩的内容<br/>
  41. <img src="../../libs/images/demo/demo1.jpg"/>
  42. </div>
  43. <input type="button" value="点击1秒后遮罩" onclick="openMask3()"/>
  44. <input type="button" value="关闭遮罩" onclick="closeMask3()"/>
  45. </fieldset>
  46. <div class="height_15"></div>
  47. <fieldset>
  48. <legend>4、出现加载图标</legend>
  49. <div style="border:solid 1px #cccccc;padding:10px;width:300px;" id="content4">
  50. 要遮罩的内容<br/>
  51. <img src="../../libs/images/demo/demo1.jpg"/>
  52. </div>
  53. <input type="button" value="开启遮罩" onclick="openMask4()"/>
  54. <input type="button" value="关闭遮罩" onclick="closeMask4()"/>
  55. </fieldset>
  56. <div class="height_15"></div>
  57. <fieldset>
  58. <legend>5、改变遮罩颜色</legend>
  59. <div style="border:solid 1px #cccccc;padding:10px;width:300px;" id="content5">
  60. 要遮罩的内容<br/>
  61. <img src="../../libs/images/demo/demo1.jpg"/>
  62. </div>
  63. <input type="button" value="开启遮罩" onclick="openMask5()"/>
  64. <input type="button" value="关闭遮罩" onclick="closeMask5()"/>
  65. </fieldset>
  66. <div class="height_15"></div>
  67. </div>
  68. <script>
  69. function openMask1(){
  70. $("#content1").mask();
  71. }
  72. function closeMask1(){
  73. $("#content1").unmask();
  74. }
  75. function openMask2(){
  76. $("#content2").mask("当前不可用!",0,false);
  77. }
  78. function closeMask2(){
  79. $("#content2").unmask();
  80. }
  81. function openMask3(){
  82. $("#content3").mask(null,1000,false);
  83. }
  84. function closeMask3(){
  85. $("#content3").unmask();
  86. }
  87. function openMask4(){
  88. $("#content4").mask("正在加载中",null,true);
  89. }
  90. function closeMask4(){
  91. $("#content4").unmask();
  92. }
  93. function openMask5(){
  94. $("#content5").mask("当前不可用!",null,false,"#ffffff");
  95. }
  96. function closeMask5(){
  97. $("#content5").unmask();
  98. }
  99. </script>
  100. </body>
  101. </html>