89613a15e9da7ca8e5e898035779442f34af6899.svn-base 6.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495
  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 style="width:800px;">
  17. <fieldset style="border-color:#999999;">
  18. <legend>1、基本示例:</legend>
  19. <div class="box2" style="width: 450px;"><div id="box_topcenter" class="box_topcenter"><div class="box_topleft"><div class="box_topright"><div class="title"><span>控制面板</span></div><div class="boxSubTitle"></div><div class="status"><span class="ss"><a href="http://www.baidu.com" target="_blank">更多>></a></span></div><div class="clear"></div></div></div></div><div class="box_middlecenter"><div class="box_middleleft"><div class="box_middleright"><div class="boxContent" style="overflow: visible;height:250px;">
  20. 这是极速版box2的效果。效果与框架自动渲染一样,但速度会快很多。<br/>
  21. 如果需要收缩功能,可以监听状态区域的click自己处理或者手动调用render()方法渲染。
  22. </div></div></div></div><div id="box_bottomcenter" class="box_bottomcenter"><div class="box_bottomleft"><div class="box_bottomright"></div></div></div></div>
  23. </fieldset>
  24. <div class="height_15"></div>
  25. <fieldset style="border-color:#999999;">
  26. <legend>2、自定义图标:</legend>
  27. <div class="box2" style="width: 300px;"><div id="box_topcenter" class="box_topcenter"><div class="box_topleft"><div class="box_topright"><div class="title"><span class="icon_list" style="background-position: 0px 50%;">与图标库关联</span></div><div class="boxSubTitle"></div><div class="status"><span class="ss"></span></div><div class="clear"></div></div></div></div><div class="box_middlecenter"><div class="box_middleleft"><div class="box_middleright"><div class="boxContent" style="overflow: visible;">
  28. 内容区域<br>内容区域<br>内容区域<br>
  29. 内容区域<br>内容区域<br>内容区域<br>
  30. </div></div></div></div><div id="box_bottomcenter" class="box_bottomcenter"><div class="box_bottomleft"><div class="box_bottomright"></div></div></div></div>
  31. <div class="box2" style="width: 300px;"><div id="box_topcenter" class="box_topcenter"><div class="box_topleft"><div class="box_topright"><div class="title"><span style="background-image: url(../../libs/images/icons/setting.png); background-repeat: no-repeat; background-position: 0px 50%; display: block; padding-left: 18px;">读取外部图标文件</span></div><div class="boxSubTitle"></div><div class="status"><span class="ss"></span></div><div class="clear"></div></div></div></div><div class="box_middlecenter"><div class="box_middleleft"><div class="box_middleright"><div class="boxContent" style="overflow: visible;">
  32. 内容区域<br>内容区域<br>内容区域<br>
  33. 内容区域<br>内容区域<br>内容区域<br>
  34. </div></div></div></div><div id="box_bottomcenter" class="box_bottomcenter"><div class="box_bottomleft"><div class="box_bottomright"></div></div></div></div>
  35. </fieldset>
  36. <div class="height_15"></div>
  37. <fieldset style="border-color:#999999;">
  38. <legend>3、副标题:</legend>
  39. <div class="box2" style="width: 300px;"><div id="box_topcenter" class="box_topcenter"><div class="box_topleft"><div class="box_topright"><div class="title"><span>任务列表</span></div><div class="boxSubTitle" style="color: rgb(255, 0, 0);">【您有15条任务未完成】</div><div class="status"><span class="ss"></span></div><div class="clear"></div></div></div></div><div class="box_middlecenter"><div class="box_middleleft"><div class="box_middleright"><div class="boxContent" style="overflow: visible;">
  40. 内容区域<br>内容区域<br>内容区域<br>
  41. 内容区域<br>内容区域<br>内容区域<br>
  42. </div></div></div></div><div id="box_bottomcenter" class="box_bottomcenter"><div class="box_bottomleft"><div class="box_bottomright"></div></div></div></div>
  43. </fieldset>
  44. <div class="height_15"></div>
  45. <fieldset style="border-color:#999999;">
  46. <legend>4、自定义风格:</legend>
  47. <div iconclass="icon_list" paneltitle="信息列表" panelwidth="300" boxtype="box2" class="box2_custom" style="width: 300px;"><div id="box_topcenter" class="box_topcenter"><div class="box_topleft"><div class="box_topright"><div class="title"><span class="icon_list" style="background-position: 0px 50%;">信息列表</span></div><div class="boxSubTitle"></div><div class="status"><span class="ss"></span></div><div class="clear"></div></div></div></div><div class="box_middlecenter"><div class="box_middleleft"><div class="box_middleright"><div class="boxContent" style="overflow: visible;">
  48. 内容区域<br>内容区域<br>内容区域<br>
  49. 内容区域<br>内容区域<br>内容区域<br>
  50. </div></div></div></div><div id="box_bottomcenter" class="box_bottomcenter"><div class="box_bottomleft"><div class="box_bottomright"></div></div></div></div>
  51. </fieldset>
  52. <div class="height_50"></div>
  53. </div>
  54. <script>
  55. $(function(){
  56. $("#box-6").bind("stateChange",function(e,state){
  57. alert(state);
  58. });
  59. })
  60. function openWin(){
  61. alert("这是自定义事件,可以弹个窗口什么的")
  62. }
  63. function createBox(){
  64. var $box=$('<div class="box2" panelWidth="300" panelHeight="150" panelTitle="控制面板">内容部分</div>');
  65. $("#testBtn").after($box);
  66. $box.render();
  67. }
  68. function changeBox(){
  69. $("#box6").attr("panelTitle","新标题");
  70. $("#box6").attr("panelWidth",400);
  71. $("#box6").attr("panelHeight",300);
  72. $("#box6").render();
  73. }
  74. function getBoxState(){
  75. alert($("#box-7").box2GetState());
  76. }
  77. function changeBoxState(){
  78. $("#box-7").box2ChangeState();
  79. }
  80. function openBox(){
  81. $("#box-7").box2Open();
  82. }
  83. function closeBox(){
  84. $("#box-7").box2Close();
  85. }
  86. </script>
  87. </body>
  88. </html>