1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495 |
- <!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></title>
- <!--框架必需start-->
- <script type="text/javascript" src="../../libs/js/jquery.js"></script>
- <script type="text/javascript" src="../../libs/js/language/cn.js"></script>
- <script type="text/javascript" src="../../libs/js/framework.js"></script>
- <link href="../../libs/css/import_basic.css" rel="stylesheet" type="text/css"/>
- <link rel="stylesheet" type="text/css" id="skin" prePath="../../"/>
- <link rel="stylesheet" type="text/css" id="customSkin"/>
- <!--框架必需end-->
- </head>
- <body>
- <div style="width:800px;">
- <fieldset style="border-color:#999999;">
- <legend>1、基本示例:</legend>
- <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;">
- 这是极速版box2的效果。效果与框架自动渲染一样,但速度会快很多。<br/>
- 如果需要收缩功能,可以监听状态区域的click自己处理或者手动调用render()方法渲染。
- </div></div></div></div><div id="box_bottomcenter" class="box_bottomcenter"><div class="box_bottomleft"><div class="box_bottomright"></div></div></div></div>
- </fieldset>
- <div class="height_15"></div>
- <fieldset style="border-color:#999999;">
- <legend>2、自定义图标:</legend>
- <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;">
- 内容区域<br>内容区域<br>内容区域<br>
- 内容区域<br>内容区域<br>内容区域<br>
- </div></div></div></div><div id="box_bottomcenter" class="box_bottomcenter"><div class="box_bottomleft"><div class="box_bottomright"></div></div></div></div>
-
- <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;">
- 内容区域<br>内容区域<br>内容区域<br>
- 内容区域<br>内容区域<br>内容区域<br>
- </div></div></div></div><div id="box_bottomcenter" class="box_bottomcenter"><div class="box_bottomleft"><div class="box_bottomright"></div></div></div></div>
- </fieldset>
- <div class="height_15"></div>
- <fieldset style="border-color:#999999;">
- <legend>3、副标题:</legend>
- <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;">
- 内容区域<br>内容区域<br>内容区域<br>
- 内容区域<br>内容区域<br>内容区域<br>
- </div></div></div></div><div id="box_bottomcenter" class="box_bottomcenter"><div class="box_bottomleft"><div class="box_bottomright"></div></div></div></div>
- </fieldset>
- <div class="height_15"></div>
- <fieldset style="border-color:#999999;">
- <legend>4、自定义风格:</legend>
- <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;">
- 内容区域<br>内容区域<br>内容区域<br>
- 内容区域<br>内容区域<br>内容区域<br>
- </div></div></div></div><div id="box_bottomcenter" class="box_bottomcenter"><div class="box_bottomleft"><div class="box_bottomright"></div></div></div></div>
- </fieldset>
- <div class="height_50"></div>
- </div>
- <script>
- $(function(){
- $("#box-6").bind("stateChange",function(e,state){
- alert(state);
- });
- })
-
- function openWin(){
- alert("这是自定义事件,可以弹个窗口什么的")
- }
- function createBox(){
- var $box=$('<div class="box2" panelWidth="300" panelHeight="150" panelTitle="控制面板">内容部分</div>');
- $("#testBtn").after($box);
- $box.render();
- }
- function changeBox(){
- $("#box6").attr("panelTitle","新标题");
- $("#box6").attr("panelWidth",400);
- $("#box6").attr("panelHeight",300);
- $("#box6").render();
- }
- function getBoxState(){
- alert($("#box-7").box2GetState());
- }
- function changeBoxState(){
- $("#box-7").box2ChangeState();
- }
- function openBox(){
- $("#box-7").box2Open();
- }
- function closeBox(){
- $("#box-7").box2Close();
- }
- </script>
- </body>
- </html>
|