瀏覽代碼

first commit

chuwanghui 8 年之前
當前提交
d7d955668b
共有 100 個文件被更改,包括 5282 次插入0 次删除
  1. 14 0
      CD.htm
  2. 35 0
      Properties/AssemblyInfo.cs
  3. 13 0
      RS.htm
  4. 441 0
      UCD.css
  5. 135 0
      UJ.css
  6. 103 0
      UJson.htm
  7. 1601 0
      US.Develop.csproj
  8. 28 0
      US.Develop.csproj.user
  9. 10 0
      US.Develop.csproj.vspscc
  10. 89 0
      U_LR_I.htm
  11. 30 0
      Web.Debug.config
  12. 31 0
      Web.Release.config
  13. 13 0
      Web.config
  14. 二進制
      bin/US.Develop.dll
  15. 二進制
      bin/US.Develop.pdb
  16. 二進制
      controls/pc/BasicControl/977E096DE7DD7A4680D91A14B1454526.png
  17. 二進制
      controls/pc/BasicControl/img/1asd.jpg
  18. 二進制
      controls/pc/BasicControl/img/asdasd.jpg
  19. 二進制
      controls/pc/BasicControl/img/wenjian.jpg
  20. 94 0
      controls/pc/BasicControl/kongjian.css
  21. 13 0
      controls/pc/BasicControl/kongjian.html
  22. 139 0
      controls/pc/BasicControl/kongjian.js
  23. 82 0
      controls/pc/Calculator/Calculator.css
  24. 28 0
      controls/pc/Calculator/Calculator.html
  25. 239 0
      controls/pc/Calculator/Calculator.js
  26. 二進制
      controls/pc/Calculator/IMG/1.jpg
  27. 二進制
      controls/pc/Calculator/计算器.jpg
  28. 52 0
      controls/pc/City/City.css
  29. 18 0
      controls/pc/City/City.htm
  30. 16 0
      controls/pc/City/City.js
  31. 79 0
      controls/pc/Confirm/Confirm.css
  32. 18 0
      controls/pc/Confirm/Confirm.htm
  33. 56 0
      controls/pc/Confirm/Confirm.js
  34. 二進制
      controls/pc/Confirm/Confirm.png
  35. 16 0
      controls/pc/Confirm/aaa.js
  36. 二進制
      controls/pc/Confirm/close.png
  37. 15 0
      controls/pc/FoldingMenu/Demo1/FoldingMenu.css
  38. 28 0
      controls/pc/FoldingMenu/Demo1/FoldingMenu.html
  39. 83 0
      controls/pc/FoldingMenu/Demo1/FoldingMenu.js
  40. 二進制
      controls/pc/FoldingMenu/Demo1/img/JT.png
  41. 17 0
      controls/pc/FoldingMenu/Demo2/FoldingMenu.css
  42. 107 0
      controls/pc/FoldingMenu/Demo2/FoldingMenu.html
  43. 65 0
      controls/pc/FoldingMenu/Demo2/FoldingMenu.js
  44. 二進制
      controls/pc/FoldingMenu/Demo2/img/JT.png
  45. 二進制
      controls/pc/FoldingMenu/控件.png
  46. 17 0
      controls/pc/Imagelist/HTMLPage1.htm
  47. 111 0
      controls/pc/Imagelist/Imagelist.css
  48. 20 0
      controls/pc/Imagelist/Imagelist.htm
  49. 250 0
      controls/pc/Imagelist/Imagelist.js
  50. 二進制
      controls/pc/Imagelist/images/banner1.png
  51. 二進制
      controls/pc/Imagelist/images/left.png
  52. 二進制
      controls/pc/Imagelist/images/right.png
  53. 二進制
      controls/pc/Imagelist/浏览列表.gif
  54. 104 0
      controls/pc/LDB/LDB.css
  55. 27 0
      controls/pc/LDB/LDB.html
  56. 84 0
      controls/pc/LDB/LDB.js
  57. 二進制
      controls/pc/LDB/LDB/Checkbox.jpg
  58. 二進制
      controls/pc/LDB/LDB/Input.png
  59. 二進制
      controls/pc/LDB/LDB/Redio.jpg
  60. 二進制
      controls/pc/LDB/LDB/bCheckbox.jpg
  61. 二進制
      controls/pc/LDB/LDB/bRedio.jpg
  62. 二進制
      controls/pc/LDB/LDB/div.png
  63. 二進制
      controls/pc/LDB/LDB/img.jpg
  64. 105 0
      controls/pc/Lnav/Lnav.css
  65. 13 0
      controls/pc/Lnav/Lnav.html
  66. 74 0
      controls/pc/Lnav/Lnav.js
  67. 二進制
      controls/pc/Lnav/img/bg.jpg
  68. 二進制
      controls/pc/Lnav/左侧滑动导航栏.png
  69. 二進制
      controls/pc/Lnav/左侧滑动导航栏手机端.png
  70. 30 0
      controls/pc/Loading/loading.css
  71. 21 0
      controls/pc/Loading/loading.htm
  72. 二進制
      controls/pc/Loading/loading.jpg
  73. 44 0
      controls/pc/Loading/loading.js
  74. 二進制
      controls/pc/Loading/test.png
  75. 二進制
      controls/pc/Login/text2/img/f5.png
  76. 二進制
      controls/pc/Login/text2/img/qq-icon-hover.png
  77. 二進制
      controls/pc/Login/text2/img/qq-icon.png
  78. 二進制
      controls/pc/Login/text2/img/suo.png
  79. 二進制
      controls/pc/Login/text2/img/user.png
  80. 二進制
      controls/pc/Login/text2/img/weibo-icon-hover.png
  81. 二進制
      controls/pc/Login/text2/img/weibo-icon.png
  82. 51 0
      controls/pc/Login/text2/login.css
  83. 21 0
      controls/pc/Login/text2/login.htm
  84. 104 0
      controls/pc/Login/text2/login.js
  85. 二進制
      controls/pc/Login/设计图/登录-改版.png
  86. 二進制
      controls/pc/Login/设计图/登录注册控件-最新.jpg
  87. 11 0
      controls/pc/Map/Map.css
  88. 122 0
      controls/pc/Map/Map.js
  89. 26 0
      controls/pc/Map/MapIndex.htm
  90. 二進制
      controls/pc/Map/searchicon.png
  91. 二進制
      controls/pc/Map/地图.psd
  92. 二進制
      controls/pc/Map/地图设计图.png
  93. 13 0
      controls/pc/Note/Note.css
  94. 17 0
      controls/pc/Note/Note.htm
  95. 43 0
      controls/pc/Note/Note.js
  96. 二進制
      controls/pc/Note/add.png
  97. 二進制
      controls/pc/Note/dele.png
  98. 174 0
      controls/pc/Pag/Pag.css
  99. 92 0
      controls/pc/Pag/Pag.js
  100. 0 0
      controls/pc/Pag/Pag1.css

+ 14 - 0
CD.htm

@@ -0,0 +1,14 @@
+<!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="pragma" content="no-cache" />
+    <meta http-equiv="Cache-Control" content="no-cache, must-revalidate" />
+    <meta http-equiv="expires" content="Wed, 26 Feb 1997 08:21:57 GMT" />
+    <title></title>
+    <script type="text/javascript">        document.domain = "1473.cn";</script>
+    <script type="text/javascript" charset="utf-8" src="http://www.1473.cn/uform.js"></script>
+    <script type="text/javascript">        var $$ = top.$$;</script>
+</head>
+<body>
+</body>
+</html>

+ 35 - 0
Properties/AssemblyInfo.cs

@@ -0,0 +1,35 @@
+using System.Reflection;
+using System.Runtime.CompilerServices;
+using System.Runtime.InteropServices;
+
+// 有关程序集的常规信息通过以下特性集 
+// 控制。更改这些特性值可修改
+// 与程序集关联的信息。
+[assembly: AssemblyTitle("US.Develop")]
+[assembly: AssemblyDescription("")]
+[assembly: AssemblyConfiguration("")]
+[assembly: AssemblyCompany("")]
+[assembly: AssemblyProduct("US.Develop")]
+[assembly: AssemblyCopyright("Copyright ©  2013")]
+[assembly: AssemblyTrademark("")]
+[assembly: AssemblyCulture("")]
+
+// 将 ComVisible 设置为 false 会使此程序集中的类型 
+// 对 COM 组件不可见。如果需要从 COM 访问此程序集中的类型, 
+// 则将该类型上的 ComVisible 特性设置为 true。
+[assembly: ComVisible(false)]
+
+// 如果此项目向 COM 公开,则下列 GUID 用于类型库的 ID
+[assembly: Guid("05e4f103-8239-4e04-9c5a-243b56384055")]
+
+// 程序集的版本信息由下列四个值组成:
+//
+//      主版本
+//      次版本 
+//      内部版本号
+//      修订号
+//
+// 您可以指定所有这些值,也可以使用“修订号”和“内部版本号”的默认值, 
+// 方法是按如下所示使用“*”:
+[assembly: AssemblyVersion("1.0.0.0")]
+[assembly: AssemblyFileVersion("1.0.0.0")]

+ 13 - 0
RS.htm

@@ -0,0 +1,13 @@
+<!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>
+    <title></title>
+    <link href="http://www.1473.cn/uform.css" rel="stylesheet" type="text/css" />
+    <script src="http://www.1473.cn/uform.js" type="text/javascript"></script>
+    <script src="js/External/U.CD.Config.js" type="text/javascript"></script>
+    <!--css代码,js代码写在下面-->
+</head>
+<body style="background:#fff;">
+    <!-- html元素写在下面 -->
+</body>
+</html>

File diff suppressed because it is too large
+ 441 - 0
UCD.css


+ 135 - 0
UJ.css

@@ -0,0 +1,135 @@
+/*html,body{ width:100%; height:100%; margin:0; padding:0; font-family:Consolas; font-size:14px;}*/
+
+/*所有生成控件的样式*/
+
+
+/*由于需要源代码显示,所以最好不要有样式,全部内置到代码中。。。。。大家要学习新的方法。*/
+
+
+
+/*全部绝对定位,以便于在界面上定位*/
+/*弹窗样式*/
+.Radius5{-moz-border-radius: 5px;-webkit-border-radius:5px;border-radius:5px;}
+.UDL						{background-image:url(http://www.1473.cn/img/dialogue-1.png);}
+.U_UI_dialogue			    {width:350px;position:absolute;top:200px;left:100px; -moz-box-shadow: 0px 1px 5px #8e8e8e; -webkit-box-shadow: 0px 1px 5px #8e8e8e;box-shadow: 0px 1px 5px #8e8e8e;background-color:white;border:1px solid #e4e4e4;}
+.U_UI_dltop				    {width:100%;height:33px; }
+.U_UI_dldrag				{width:80%;height:100%;float:left;font-size:16px;line-height:35px;font-family:"微软雅黑";color:#5e93d7; text-indent:10px;}
+.U_UI_dlclose				{width:25px;height:25px;float:right;cursor:pointer; margin-right:10px;}
+.U_UI_dlcontent			    {width:100%;float:left;}
+.U_UI_dltext				{width:90%;height:80%;margin-left:5%;}
+.U_UI_dlbutton			    {width:160px;height:30px; float:right; margin:0 8px 8px 0;}
+.U_UI_dlyes				    {width:50px;height:30px; text-align:center;float:right;color:White;font-family:微软雅黑;line-height:30px; cursor:pointer; background-color:#3398ff; margin-right:15px;  }	
+.U_UI_dlno				    {width:60px;height:32px;background-position:-98px -218px;float:left;margin-left:5px;}
+.U_UI_dlno:hover			{background-position:-34px -94px; cursor:pointer;}
+.U_UI_dlnoSR                { width:250px; height:43px; float:left; margin:0px; background-position:-27px -15px; margin:10px 0 0 47px; }
+
+/*命令窗口关闭按钮样式*/
+.UDK_UP_TC       { width:30px; height:28px; float:right; line-height:20px; margin:0 15px 0 5px; background-position:-170px -220px;}
+.UDK_UP_TC:hover { background-position:-139px -220px; cursor:pointer;}
+
+
+
+
+/*-----------------------------------------------------------------------有思图片区域------------------------------------------------------------*/
+.U_ImgPic{background-image:url(http://www.1473.cn/img/U_Img.png);}/*图片樣式*/
+/*整体样式*/
+.U_Img{position:absolute; z-index:1; width:440px; background-color:#fff; min-width:400px; padding-bottom:10px; }/*  box-shadow: 0px 0px 10px #000000; -webkit-box-shadow:0 0 10px black; -moz-box-shadow:0 0 10px black; border-bottom:1px solid #949494;*/
+/*上一张的按钮*/
+.U_Img_Change{width:28px; height:33px; position:absolute; top:100px; z-index:2; cursor:pointer; }
+.U_Img_Change:hover{width:71px;}
+.U_Img_Prev{background-position:-50px -71px;  left:0px;}
+.U_Img_Prev:hover{background-position:-8px -71px; }
+/*下一张的按钮*/
+.U_Img_Next{background-position:-4px -121px; right:0px;}
+/*关闭按钮*/
+.U_Img_Close{width:83px;height:30px; background-position:-92px -72px; margin-right:5px; margin-top:3px;  cursor:pointer; float:right;}
+.U_Img_Close:hover{background-position:-92px -122px;}
+/*移动框*/
+.U_Img_Move{width:100%; height:25px; background-color:#4b75ad; cursor:pointer;}
+/*.U_Img_Move:hover{height:15px; top:0px; cursor:pointer;}*/
+/*U_Img图片框*/
+.U_Img_Info{cursor:pointer; min-height:100px;  overflow:hidden; margin-top:10px; }
+
+/*U_Img操作框  如放大缩小收藏*/  /*a标签是对应的功能操作*/
+.U_Img .U_Img_Operate{ text-align:left; overflow:hidden; line-height:35px; width:100%; height:35px; background-color:rgba(255,255,255,0.5); *background-color:#fff; }
+.U_Img:hover .U_Img_Operate{height:35px;}
+.U_Img .U_Img_Operate a{padding:0 5px; margin-top:5px; height:25px; line-height:25px; display:block; cursor:pointer; float:left;}
+.U_Img .U_Img_Operate a:hover{background-color:#333; color:#fff;}
+.U_Img .U_Img_Operate i{display:block; float:left; width:25px; height:25px;}
+.U_Img .U_Img_Operate div   {float:left;}
+.U_Img .U_Img_Operate a .zoomIn{background-position:0px -26px;}/*放大图标*/
+.U_Img .U_Img_Operate a:hover .zoomIn{background-position:0px -0px;}
+.U_Img .U_Img_Operate a .zoomOut{background-position:-26px -26px;}/*缩小图标*/
+.U_Img .U_Img_Operate a:hover .zoomOut{background-position:-26px -0px;}
+.U_Img .U_Img_Operate a .Lrotate{background-position:-51px -26px;}/*向左转图标*/
+.U_Img .U_Img_Operate a:hover .Lrotate{background-position:-51px -0px;}
+.U_Img .U_Img_Operate a .Rrotate{background-position:-76px -26px;}/*向右转图标*/
+.U_Img .U_Img_Operate a:hover .Rrotate{background-position:-76px -0px;}
+.U_Img .U_Img_Operate a .Love{background-position:-101px -26px;}/*收藏图标*/
+.U_Img .U_Img_Operate a:hover .Love{background-position:-101px -0px;}
+.U_Img .U_Img_Operate a .Download{background-position:-126px -26px;}/*下载图标*/
+.U_Img .U_Img_Operate a:hover .Download{background-position:-126px -0px;}
+.U_Img_transition{transition:All 0.2s ease;-webkit-transition:All 0.2s ease;-moz-transition:All 0.2s ease;-o-transition:All 0.2s ease;}/*未知属性 ie chrome无法识别*/
+
+/*U_Img评论区*/
+.U_Img_Comment{line-height:22px; display:none; padding:5px; margin:10px 0; list-style:none; overflow:hidden;}
+.U_Img_Comment li{border-bottom:1px dotted #ccc; padding:5px 0; margin:0;}
+.U_Img_Comment li .face{margin:5px; float:left;}
+.U_Img_Comment .U_Img_ComInput{ width:100%; color:#555; margin:0; padding:0; line-height:25px; height:50px;}
+
+
+/*--------------------------------------------------窗体区域样式表-------------------------------------------*/
+/*拉伸样式*/
+.UD_W_WT_H { position: absolute; overflow: hidden; cursor: n-resize; left: 0px; top: 0px; width: 100%; height: 5px; display: block; }
+.UD_W_WT_HL { position: absolute; overflow: hidden; cursor: ne-resize; right: 0px; top: 0px; width: 7px; height: 12px; display: block; }
+.UD_W_WT_HR { position: absolute; overflow: hidden; cursor: nw-resize; left: 0px; top: 0px; width: 7px; height: 12px; display: block; }
+.UD_W_WT_ML { position: absolute; overflow: hidden; cursor: w-resize; left: 0px; top: 0px; width: 5px; height: 100%; display: block; }
+.UD_W_WT_MR { position: absolute; overflow: hidden; cursor: e-resize; right: 0px; top: 0px; width: 5px; height: 100%; display: block; }
+.UD_W_WT_B { position: absolute; overflow: hidden; cursor: s-resize; left: 0px; bottom: 0px; width: 100%; height: 5px; display: block; }
+.UD_W_WT_BL { position: absolute; overflow: hidden; cursor: sw-resize; left: 0px; bottom: 0px; width: 7px; height: 12px; display: block; }
+.UD_W_WT_BR { position: absolute; overflow: hidden; cursor: se-resize; right: 0px; bottom: 0px; width: 7px; height: 12px; display: block;}
+
+
+/*桌面窗口整体样式,这里面有些没有用了,下一次清除掉。*/
+.UD_UIU                     {display:none; border-radius: 8px;  box-shadow: 0px 0px 10px #000000; -webkit-box-shadow:0 0 10px black; -moz-box-shadow:0 0 10px black; overflow: hidden;}
+.UD_WIMG                    {background:url(http://www.1473.cn/img/windowGround.png);} 
+.UD_ICON                    {background:url(http://www.1473.cn/img/windowOE.png); }
+.UD_ICONl                   {background-position:-2px 0px; width: 15px; height: 34px;float:left;clear:both;}
+.UD_ICONR                   {background-position:105px -36px;width: 15px; height: 34px;float:left;}
+.UD_ICONz                   {background-position: -21px -52px;padding:0 2px 2px 2px; background-color:White; width:auto; height:100%; clear:both; margin:auto;}
+.UD_ICONTl                  {width: 15px; height: 25px;float: left;background-position: -58px -12px;clear:both;}
+.UD_ICONTz                  {height: 25px; float: left;background-position: 0px -4088px;}
+.UD_ICONTR                  {width: 15px; height: 25px; float:left;background-position: -110px -12px;}
+.UD_ICONImg                 {width: 93px; height: 25px;background-position: -6px -45px; margin:auto; }
+.UD_W                       {position: absolute; }
+.UD_UserLeft                {-moz-box-shadow: 1px 2px 10px #3d3d3d; -webkit-box-shadow: 1px 2px 10px #3d3d3d; box-shadow: 1px 2px 10px #3d3d3d; width:130px; height:331px; float:left; background-position:-13px -76px;}
+.UD_UserLeftChild           {width:100%; height:98px; }
+.UD_UserNavigate            {width:26px; height:24px; margin-left:17px; margin-top:9px; float:left; background-position:-15px -154px; }
+.UD_UserGroup               {width:26px; height:24px; margin-left:17px; margin-top:9px; float:left; background-position:-45px -154px;}
+.UD_Userrecently            {width:26px; height:24px; margin-left:17px; margin-top:9px; float:left; background-position:-116px -156px;}
+.UD_UserEmail               {width:26px; height:24px; margin-left:17px; margin-top:9px; float:left; background-position:-82px -155px;}
+.UD_UserNavigatefat         {width:129px; height:44px;cursor:pointer;}
+.UD_UserNavigatefat:hover   {background-color:#033b6c;}
+.UD_UserNavigatebo          {width:130px; height:29px; background-position:-17px -45px;float:left; clear:left;}
+.UD_Shadow                  {width:211px; height:331px; }
+.UD_SD                      {-moz-box-shadow: 1px 2px 10px #3d3d3d; -webkit-box-shadow: 1px 2px 10px #3d3d3d; box-shadow: 1px 2px 10px #3d3d3d;}
+.UD_W_TB                    {height: 34px; line-height:33px; width:100%;  float:left; }/*头部拖动区域样式*/
+.UD_W_TB_T                  {font-size:14px; font-weight:bold; color:#5e5e5e; font-family:微软雅黑; float:left;}/*拖动区域标题*/
+.UD_W_TB_S                  {height: 5px; width: 100%; display: block; }/*头部区域背景样式*/
+.UD_W_TB_WM                 {display:inline-block; float:right;}/*放大缩小区域*/
+.UD_W_TB_WMS                {width: 30px; color: #3366ff; height: 28px; line-height: 20px;  display: inline-block; float: right; }
+.UD_W_TB_WM span            {width: 30px; color: #3366ff; height: 28px; line-height: 20px;  display: inline-block; float: right; }/*放大缩小样式*/
+.UD_W_TB_WM span:hover      {color: #fff; cursor: pointer; }
+.UD_W_TB_MQ                 {display:inline-block; height:20px;margin:2px 0 0 10px;}/*头部说明区域*/
+.UD_W_TB_WM_Min             {background-position:-12px -80px }/*最小化图标*/
+.UD_W_TB_WM_Min:hover       {background-position: -12px -122px }
+.UD_W_TB_WM_Max             {background-position:-47px -79px; }/*最大化图标*/
+.UD_W_TB_WM_Max:hover       {background-position: -47px -121px; }
+.UD_W_TB_WM_Close           {background-position:-79px -80px; width:30px; height:25px; float:right; margin-right:5px; }/*关闭图标*/
+.UD_W_TB_WM_Close:hover     {background-position: -79px -122px; }
+.UD_W_WC                    {width: 100%; overflow: hidden; background-color:White; }/*整体样式*/
+.UD_ICONBG                  {background:url(http://www.1473.cn/img/newsbg.jpg) -5px 0px no-repeat;}
+
+/*用于鼠标移过元素时产生变化的样式*/
+.UCD_IF_CT{ }
+.UCD_IF_CT:hover{ border:1px solid red;}

+ 103 - 0
UJson.htm

@@ -0,0 +1,103 @@
+<!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>
+    <title></title>
+    <style type="text/css">
+        html, body { width: 100%; height: 100%; margin: 0;padding: 0; }
+        #left { width: 25%; border: 1px solid gray; float: left;}
+        #right { width: 70%; border: 1px solid gray;float: left;}
+        .jddiv{ margin: 5px; margin-left: 20px; width: 500px;}
+    </style>
+    <!--直接引用1473的js文件-->
+    <!--<script src="http://d.1473.cn/UJ.js" type="text/javascript"></script>-->
+    <!--json类-->
+    <script src="http://d.1473.cn/js/U.Json.js" type="text/javascript"></script>
+    <script src="http://d.1473.cn/js/U.JsonData.js" type="text/javascript"></script>
+    <script src="http://www.1473.cn/js/UC/U.MC.js" type="text/javascript"></script>
+    <script type="text/javascript">
+        var jd = _jdata; //json数据
+        function init() { dgjson(jd, document.getElementById("left")); }
+        //遍历输出json所有数据
+        function dgjson(jd, p) {
+            if (jd.TNode.length > 0) {
+                var i; for (i = 0; i < jd.TNode.length; i++) {
+                    if (jd.TNode[i].Type != "file") {
+                        var t = $$("div", { "className": "jddiv", "innerHTML": "+" + jd.TNode[i].Name }, p); dgjson(jd.TNode[i], t);
+                    }
+                    else { var t = $$("div", { "className": "jddiv", "innerHTML": "" + jd.TNode[i].Name }, p); }
+                }
+            }
+        }
+        var aa = new U.Json(jd);
+        function findone() { disresult(aa.FindOne); }
+        function FindParent() { disresult(aa.Parent); }
+        function disresult(CB) {
+            var s = document.getElementById("jsoninput").value;
+            var _r = CB.apply(aa, [{ "Name": s}]); //解决this指针的指向问题。没有很好的解决,,初略方案
+            document.getElementById("result_N").innerHTML = aa.ToString(_r);
+            document.getElementById("result").style.display = "block";
+        }
+        function addChild() {
+            var s = document.getElementById("jsoninput").value;
+            var v = document.getElementById("addinput").value;
+            var _r = CB.apply(aa, [{ "Name": s}]); //解决this指针的指向问题。没有很好的解决,,初略方案
+            document.getElementById("result_N").innerHTML = aa.ToString(_r);
+            document.getElementById("result").style.display = "block";
+        }
+        function DelMore() {
+            //var _r = aa.DelMore({ "IsDelete": false }); //解决this指针的指向问题。没有很好的解决,,初略方案
+            var _r = aa.DelMore({ "Deep": 3 }); //解决this指针的指向问题。没有很好的解决,,初略方案
+            if (!_r) {alert(_r);}
+            document.getElementById("result_N").innerHTML = aa.ToString(_r);
+            document.getElementById("result").style.display = "block";
+        }
+
+        window.onload = init;
+    </script>
+</head>
+<body>
+    <div id="left">
+    </div>
+    <div id="right">
+        <div>各种json操作</div>
+        <div>输入内容:<input id="jsoninput" style="width: 400px;" value="" type="text" /></div>
+
+        <!-------------------查找一个的功能-------------------------->
+        <div> 1、查找某一个节点,返回该节点的所有数据 调用方式 UJson.findone(D,V),D为json树,V为待查找的json<input onclick="findone()" type="button" value="确定" /> </div>
+        <div> 2、返回一个节点的所有孩子节点(注:同1),这个函数无需做,同第一个</div>
+
+        <!---------------------修改功能------------------------------>
+        <div> 3、修改某一个节点,这个函数无需做,前台直接修改即可</div>
+        <div> 4、修改某一个json的多项值,比如用户信息,修改5个以上。则直接修改。</div>
+
+        <!--查找父亲的功能-->
+        <div> 5、找到某个节点的父亲节点。如未根目录,父亲节点为空  <input onclick="FindParent()" type="button" value="确定" /> </div>
+        <div> 6、找到指定节点所在的数组,同上,找到父亲节点即可找到所在节点的数组,无需做。此功能经常需要</div>
+        <div> 7、找到父亲节点所在的数组、同上,需要查找父亲节点的父亲节点。需要递归2次,此功能经常需要。</div>
+
+        <!-- 添加功能 -->
+        <div>前面一个div找到节点,这个input输入新插入的节点:<input id="addinput" style="width: 400px;" value="" type="text" /></div>
+        <div> 8、在指定节点下面添加孩子结点,无需做,前台已经提供了这个功能 <input onclick="addChild()" type="button" value="确定" /> </div>
+        <div> 9、给指定节点添加兄弟节点,无需做,先找到父亲节点,然后找父亲节点的孩子节点</div>
+        <div> 10、树的合并,2颗树合并为一颗,此功能无需做,树已经有这个功能。</div>
+
+        <!--删除功能-->
+        <div>11、删除某一个节点,无需做,前台直接删除某一个节点,调用数组的remove函数,此函数已经修改了原型。。 </div>
+        <div>12、删除拥有某一样属性的所有节点、例如在编程树中,有些元素标记了删除,则不选取这些节点出来。此函数比较复杂<input onclick="DelMore()" type="button" value="确定" /></div>
+        
+
+        <div>
+            11、清空数组。可以搜索一下清空数组的三个方案</div>
+        
+    </div>
+    <div id="result" style="position: absolute; top: 100px; left: 300px; display: none;
+        width: 400px; min-height: 600px; border: 10px solid gray; background-color: White;">
+        <div style="width: 390px; height: 30px;">
+            <div style="float: right; font-size: 20px; cursor: pointer;" onclick="this.parentNode.parentNode.style.display='none'">
+                X</div>
+        </div>
+        <div id="result_N" style="width: 400px; min-height: 570px;">
+        </div>
+    </div>
+</body>
+</html>

File diff suppressed because it is too large
+ 1601 - 0
US.Develop.csproj


+ 28 - 0
US.Develop.csproj.user

@@ -0,0 +1,28 @@
+<?xml version="1.0" encoding="utf-8"?>
+<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
+  <ProjectExtensions>
+    <VisualStudio>
+      <FlavorProperties GUID="{349c5851-65df-11da-9384-00065b846f21}">
+        <WebProjectProperties>
+          <StartPageUrl>
+          </StartPageUrl>
+          <StartAction>CurrentPage</StartAction>
+          <AspNetDebugging>True</AspNetDebugging>
+          <SilverlightDebugging>False</SilverlightDebugging>
+          <NativeDebugging>False</NativeDebugging>
+          <SQLDebugging>False</SQLDebugging>
+          <ExternalProgram>
+          </ExternalProgram>
+          <StartExternalURL>
+          </StartExternalURL>
+          <StartCmdLineArguments>
+          </StartCmdLineArguments>
+          <StartWorkingDirectory>
+          </StartWorkingDirectory>
+          <EnableENC>False</EnableENC>
+          <AlwaysStartWebServerOnDebug>True</AlwaysStartWebServerOnDebug>
+        </WebProjectProperties>
+      </FlavorProperties>
+    </VisualStudio>
+  </ProjectExtensions>
+</Project>

+ 10 - 0
US.Develop.csproj.vspscc

@@ -0,0 +1,10 @@
+""
+{
+"FILE_VERSION" = "9237"
+"ENLISTMENT_CHOICE" = "NEVER"
+"PROJECT_FILE_RELATIVE_PATH" = ""
+"NUMBER_OF_EXCLUDED_FILES" = "0"
+"ORIGINAL_PROJECT_FILE_PATH" = ""
+"NUMBER_OF_NESTED_PROJECTS" = "0"
+"SOURCE_CONTROL_SETTINGS_PROVIDER" = "PROVIDER"
+}

+ 89 - 0
U_LR_I.htm

@@ -0,0 +1,89 @@
+<!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>
+    <title></title>
+    <script type="text/javascript">        document.domain = "1473.cn";</script>
+    <!--独立登录注册样式表-->
+    <link href="http://d.1473.cn/css/U_Reg.css" rel="stylesheet" type="text/css" />
+    <!--UQuery框架-->
+    <script src="http://www.1473.cn/uform.js" type="text/javascript"></script>
+    <!--独立的登录注册。-->
+    <script src="http://d.1473.cn/js/U.Reg.js" type="text/javascript"></script>
+    
+</head>
+<body>
+    <div id="U_R">
+        <!--登录区域-->
+        <div class="U_R_L">
+            <div class="U_R_L_T">
+                <div class="U_R_L_T_L">账号登录</div>
+                <div></div>
+                <div></div>
+            </div>
+            <div class="U_R_L_N">
+                <div class="U_R_L_N_T">
+                    <div>账号</div>
+                    <input ondblclick="this.value=''" onkeyup="U.Reg.returnkeylogin([{'obj':$('#U_R_L_N_D')[0],'event':'onclick'}])"  id="U_R_L_Name" onchange="U.Reg.LBC(this,'UName')" type="text" />
+                </div>
+                <div class="U_R_L_N_T">
+                    <div>密码</div>
+                    <input ondblclick="this.value=''" onkeyup="U.Reg.returnkeylogin([{'obj':$('#U_R_L_N_D')[0],'event':'onclick'}])"  id="U_R_L_Pass" onchange="U.Reg.LBC(this,'UPass')" type="password" />
+                </div>
+                <div  class="U_R_L_N_J">
+                    <input id="U_R_L_RememberMe" type="checkbox" />
+                    <div style=" cursor:pointer;" onclick="U.Reg.C($('#U_R_L_RememberMe')[0])">记住我的登陆状态</div>
+                </div>
+                <div class="U_R_L_N_DW">
+                    <div class="U_R_L_N_D" id="U_R_L_N_D" onclick="U.Reg.Login(this)">登录 </div>
+                    <a class="U_R_L_N_W" onclick="alert('请到www.1473.cn重置密码!')">忘记密码?</a>
+                </div>
+
+            </div>
+            <div class="U_R_L_B">
+                <div class="U_R_L_B_S">第三方帐户登陆</div>
+                <div class="U_R_L_B_B">
+                    <div class="UCD_RT_TreeIcon U_R_L_B_B_QQ" onclick="U.Reg.QQWBLogin()"></div>
+                    <div class="UCD_RT_TreeIcon U_R_L_B_B_WB" onclick="U.Reg.QQWBLogin()"></div>
+                </div>
+            </div>
+        </div>
+        <!--注册区域-->
+        <div class="U_R_R" id="U_R_R">
+            <div class="U_R_R_T">
+                <div class="U_R_L_T_L">账号注册</div>
+                <div></div>
+                <div></div>
+            </div>
+            <div style=" margin-top:25px;" class="U_R_R_D">
+                <div class="U_R_R_D_D">账号</div>
+                <input id="U_R_UName" type="text" onblur="U.Reg.RUN(this)"  onkeyup="U.M.returnkeylogin(null,[[U.Reg.UR,([this])]])" />
+                <i title="点击关闭提示框并清空内容" class="U_R_ErrorTip">4-14位数字或字母</i>
+            </div>
+            <div class="U_R_R_D">
+                <div class="U_R_R_D_D">密码</div>
+                <input id="U_R_UPass" type="password" onblur="U.Reg.IRP(this);" onkeyup="U.M.returnkeylogin(null,[[U.Reg.UR,([this])]])"  />
+                <i title="点击关闭提示框并清空内容" class="U_R_ErrorTip">6-20位的字符和数字</i>
+            </div>
+            <div class="U_R_R_D">
+                <div class="U_R_R_D_D">确认密码</div>
+                <input id="U_R_URPass" type="password" onblur="U.Reg.RCFP(this)"  onkeyup="U.M.returnkeylogin(null,[[U.Reg.UR,([this])]])"  />
+                <i title="点击关闭提示框并清空内容" class="U_R_ErrorTip">重输密码</i>
+            </div>
+            <div class="U_R_R_D">
+                <div class="U_R_R_D_D">验证码</div>
+                <input id="U_R_Captcha" style=" width:60px; height:22px;" type="text" maxlength="4" onfocus="$('i',this.parentNode)[0].style.display='none'" onblur="U.Reg.CAC(this)"  />
+                <img id="U_R_YZM" alt="看不清?点击重获验证码" style=" margin-left:5px; width: 100px; height: 30px;" src="" onclick="this.src='http://disk.1473.cn/USupfile.ashx?iframename=Verification&n='+ Math.random();U.Reg.CAC(this.parentNode.getElementsByTagName('input')[0])" />
+                <i class="U_R_ErrorTip" onclick="$('input',this.parentNode)[0].value='';this.style.display='none';"
+                        title="点击关闭提示框并清空内容" style="display: none; width:20px; "></i>
+            </div>
+            <div class="U_R_R_X">
+                <input class="U_R_R_X_C" type="checkbox" onchange="U.Reg.RR(this)" checked="checked" />
+                <div  class="U_R_R_X_X" onclick="U.Reg.XY()" >已阅读《云操作系统用户协议》</div>
+            </div>
+
+            <div class="U_R_R_Z" onclick="U.Reg.UR(this)" >注册</div>
+
+        </div>
+    </div>
+</body>
+</html>

+ 30 - 0
Web.Debug.config

@@ -0,0 +1,30 @@
+<?xml version="1.0" encoding="utf-8"?>
+
+<!-- 有关使用 web.config 转换的详细信息,请访问 http://go.microsoft.com/fwlink/?LinkId=125889 -->
+
+<configuration xmlns:xdt="http://schemas.microsoft.com/XML-Document-Transform">
+  <!--
+    在下例中,“SetAttributes”转换将更改 
+    “connectionString”的值,仅在“Match”定位器 
+    查找到值为“MyDB”的特性“name”时使用“ReleaseSQLServer”。
+    
+    <connectionStrings>
+      <add name="MyDB" 
+        connectionString="Data Source=ReleaseSQLServer;Initial Catalog=MyReleaseDB;Integrated Security=True" 
+        xdt:Transform="SetAttributes" xdt:Locator="Match(name)"/>
+    </connectionStrings>
+  -->
+  <system.web>
+    <!--
+      在下例中,“Replace”转换将替换 
+      web.config 文件的整个 <customErrors> 节。
+      请注意,由于 
+      在 <system.web> 节点下仅有一个 customErrors 节,因此不需要使用“xdt:Locator”特性。
+      
+      <customErrors defaultRedirect="GenericError.htm"
+        mode="RemoteOnly" xdt:Transform="Replace">
+        <error statusCode="500" redirect="InternalError.htm"/>
+      </customErrors>
+    -->
+  </system.web>
+</configuration>

+ 31 - 0
Web.Release.config

@@ -0,0 +1,31 @@
+<?xml version="1.0" encoding="utf-8"?>
+
+<!-- 有关使用 web.config 转换的详细信息,请访问 http://go.microsoft.com/fwlink/?LinkId=125889 -->
+
+<configuration xmlns:xdt="http://schemas.microsoft.com/XML-Document-Transform">
+  <!--
+    在下例中,“SetAttributes”转换将更改 
+    “connectionString”的值,仅在“Match”定位器 
+    查找到值为“MyDB”的特性“name”时使用“ReleaseSQLServer”。
+    
+    <connectionStrings>
+      <add name="MyDB" 
+        connectionString="Data Source=ReleaseSQLServer;Initial Catalog=MyReleaseDB;Integrated Security=True" 
+        xdt:Transform="SetAttributes" xdt:Locator="Match(name)"/>
+    </connectionStrings>
+  -->
+  <system.web>
+    <compilation xdt:Transform="RemoveAttributes(debug)" />
+    <!--
+      在下例中,“Replace”转换将替换 
+      web.config 文件的整个 <customErrors> 节。
+      请注意,由于 
+      在 <system.web> 节点下仅有一个 customErrors 节,因此不需要使用“xdt:Locator”特性。
+      
+      <customErrors defaultRedirect="GenericError.htm"
+        mode="RemoteOnly" xdt:Transform="Replace">
+        <error statusCode="500" redirect="InternalError.htm"/>
+      </customErrors>
+    -->
+  </system.web>
+</configuration>

+ 13 - 0
Web.config

@@ -0,0 +1,13 @@
+<?xml version="1.0" encoding="utf-8"?>
+
+<!--
+  有关如何配置 ASP.NET 应用程序的详细消息,请访问
+  http://go.microsoft.com/fwlink/?LinkId=169433
+  -->
+
+<configuration>
+    <system.web>
+        <compilation debug="true" targetFramework="4.0" />
+    </system.web>
+
+</configuration>

二進制
bin/US.Develop.dll


二進制
bin/US.Develop.pdb


二進制
controls/pc/BasicControl/977E096DE7DD7A4680D91A14B1454526.png


二進制
controls/pc/BasicControl/img/1asd.jpg


二進制
controls/pc/BasicControl/img/asdasd.jpg


二進制
controls/pc/BasicControl/img/wenjian.jpg


+ 94 - 0
controls/pc/BasicControl/kongjian.css

@@ -0,0 +1,94 @@
+li{
+	list-style: none
+}
+
+table{
+	width: 300px;
+    height: 100px;
+    position:absolute;
+}
+select {
+  /*Chrome和Firefox里面的边框是不一样的,所以复写了一下*/
+  position: absolute;
+  border: solid 1px #000;
+
+  /*很关键:将默认的select选择框样式清除*/
+/*  appearance:none; IE*/
+  -moz-appearance:none; 
+  -webkit-appearance:none; /*Chrome*/
+
+  /*在选择框的最右侧中间显示小箭头图片*/
+  background: url("./img/asdasd.jpg") no-repeat scroll right center transparent;
+
+
+  /*为下拉小箭头留出一点位置,避免被文字覆盖*/
+  padding-right: 14px;
+  border: solid 1px silver;
+  appearance: none;
+  -moz-appearance: none;
+  -webkit-appearance: none;
+  background: url(./img/asdasd.jpg) no-repeat scroll right center transparent;
+  font-family: Microsoft yahie;
+  width: 120px;
+  height: 36px;
+  padding: 7px 36px 8px 13px;
+}
+option 
+{
+    position: absolute;
+	appearance:none;
+	-moz-appearance:none;
+	-webkit-appearance:none;
+}
+
+/*input[type='file']::-webkit-file-upload-button {
+    padding: .4em 1.5em .4em;
+    line-height: 30px;
+    border: 1px solid #3389cc;
+    background: #3389cc;
+    border-radius: 5px;
+    font-family: microsoft yahei;
+    color: white;
+}*/
+.fileUpload {
+    position: absolute;
+    overflow: hidden;
+    margin: 10px;
+}
+
+.fileUpload input.upload {
+    position: absolute;
+    top: 0;
+    right: 0;
+    margin: 0;
+    padding: 0;
+    font-size: 20px;
+    cursor: pointer;
+    opacity: 0;
+    filter: alpha(opacity=0);
+}
+label[for=upload] 
+{
+	border: 1px solid #3389cc;
+    background-color: #3389cc;
+    display: inline-block;
+    line-height: 18px;
+    padding: 0.8em 1.2em 0.8em;
+    border-radius: 8px;
+    color: white;
+    font-family: microsoft yahei;
+}
+.file-name 
+{
+    display: inline-block;
+    line-height: 41px;
+    border: 1px solid silver;
+    padding: 0 1.25em 0 9em;
+    background: url(./img/wenjian.jpg) no-repeat scroll left center transparent;
+    height: 2.5em;
+    vertical-align: bottom;
+}
+.ul
+{
+    position:absolute;
+    }

+ 13 - 0
controls/pc/BasicControl/kongjian.html

@@ -0,0 +1,13 @@
+
+<html xmlns="http://www.w3.org/1999/xhtml">
+<head runat="server">
+    <title></title>
+    <link rel="stylesheet" type="text/css" href="./kongjian.css"/>
+    <script src="http://www.1473.cn/uform.js"></script>
+    <script type="text/javascript" src="./kongjian.js"></script>
+</head>
+
+<body>
+    
+</body>
+</html>

+ 139 - 0
controls/pc/BasicControl/kongjian.js

@@ -0,0 +1,139 @@
+Namespace.register("U.Control.BasicControl");
+
+//
+U.Control.BasicControl.A = function () {
+
+
+};
+var U_Control_BasicControl_div2;
+var U_Control_BasicControl_div3;
+window.onload = function () {
+    U.Control.BasicControl.file();
+    U.Control.BasicControl.ul();
+    U.Control.BasicControl.table();
+    U.Control.BasicControl.select();
+}
+//生成文件上传控件
+U.Control.BasicControl.file = function () {
+    var div = $$('div', { 'class': 'fileUpload btn btn-primary' });
+    $$('label', { 'for': 'upload', 'innerHTML': '上传图片' }, div);
+    U_Control_BasicControl_div2 = $$('div', { 'class': 'file-name' }, div);
+    U_Control_BasicControl_div3 = $$('input', { 'class': 'upload', 'id': 'upload' }, div);
+    return div
+};
+//生成select元素
+U.Control.BasicControl.select = function () {
+    var form1 = $$('form', { 'class': 'form1', 'runat': 'server', 'style': {'position':'absolute'} });
+    var form2 = $$('div', { 'class': 'formdiv' }, form1);
+    var form3 = $$('select', { 'class': 'select' }, form2);
+    $$('option', { 'value': 1, 'innerHTML': '操作' }, form3);
+    $$('option', { 'value': 1, 'innerHTML': '栏目设置' }, form3);
+    $$('option', { 'value': 1, 'innerHTML': '更多设置' }, form3);
+    $$('option', { 'value': 1, 'innerHTML': '更多选项' }, form3);
+    return form1;
+}
+//生成ul控件
+U.Control.BasicControl.ul = function () {
+    //ul li 创建
+    var form1 = $$('ul', { 'id': 'ul0', 'class': 'ul' });
+    $$('li', { 'class': 'li', 'id': 'li0', 'innerHTML' : '新闻资讯'}, form1);
+    $$('li', { 'class': 'li', 'id': 'li1', 'innerHTML': '体育竞技' }, form1);
+    $$('li', { 'class': 'li', 'id': 'li2', 'innerHTML': '体育竞技' }, form1);
+    $$('li', { 'class': 'li', 'id': 'li3', 'innerHTML': '体育竞技' }, form1);
+    $$('li', { 'class': 'li', 'id': 'li4', 'innerHTML': '体育竞技' }, form1);
+    return form1;
+}
+
+//生成表格元素
+U.Control.BasicControl.table = function () {
+    //table 创建
+
+    var form1 = $$('table', { 'class': 'table', 'id': 'table0' });
+    //tbody 创建
+    var form2 = $$('tbody', { 'id': 'tbody0' }, form1);
+    //tr 创建
+    var form3 = $$('tr', { 'id': 'tr0' }, form2);
+    var form4 = $$('tr', { 'id': 'tr1' }, form2);
+
+    $$('td', { 'id': 'td0' }, form3);
+    $$('td', { 'id': 'td1' }, form3);
+
+    $$('td', { 'id': 'td2' }, form4);
+    $$('td', { 'id': 'td3' }, form4);
+
+    $(form1).addAttrArray({ "cellspacing": "0" })
+    $(form1).addAttrArray({ "border": "1" })
+    return form1;
+}
+
+//实现文件上传美化
+U.Control.BasicControl.fileupdate = function () {
+    var uploadInput = U_Control_BasicControl_div3; //使用强大ufrom文件上传按钮获取
+    uploadInput.addEventListener('change', function () {//当文件上传时触发函数
+        U_Control_BasicControl_div2.innerHTML = uploadInput.files[0].name; //将文件名显示在文件上传框
+    });
+};
+
+
+U.Control.BasicControl.Img = function () {
+    var a = $$("div", { "class": "yanzRight" });
+    var b = $$("input", { "style": { "margin-top": "5px", "float": "left" }, "id": "st18", "name": "evidence", "type": "file" }, a);
+    b.onchange = function () { previewImage(this, 5) }
+    var c = $$("span", { "class": "dui", "id": "imgOrder_dui", "style": { "display": "none"} }, a);
+    var d = $$("div", { "id": "preview5", "style": { "margin-left": "150px", "clear": "both", "padding-top": "15px"} }, a);
+    var img = $$("img", { "src": "", "alt": "", "id": "imghead5", "height": "200px;", "width": "200px", "style": { "display": "none"} }, d);
+    return a;
+}
+
+function previewImage(file, imgNum) {
+    console.log(1)
+    var MAXWIDTH = 200;
+    var MAXHEIGHT = 200;
+//    var div = document.getElementById('preview' + imgNum);
+    var div = $("#UCD_CT_SM_IF")[0].contentWindow.document.getElementById('preview' + imgNum);
+    if (file.files && file.files[0]) {
+        div.innerHTML = '<img id=imghead' + imgNum + '>';
+//        var img = document.getElementById('imghead' + imgNum + '');
+        var img = $("#UCD_CT_SM_IF")[0].contentWindow.document.getElementById('imghead' + imgNum + ''); ;
+        img.onload = function () {
+            var rect = clacImgZoomParam(MAXWIDTH, MAXHEIGHT, img.offsetWidth, img.offsetHeight);
+            img.width = rect.width;
+            img.height = rect.height;
+            //         img.style.marginLeft = rect.left+'px';
+            img.style.marginTop = rect.top + 'px';
+        }
+        var reader = new FileReader();
+        reader.onload = function (evt) { img.src = evt.target.result; }
+        reader.readAsDataURL(file.files[0]);
+    }
+    else //
+    {
+        var sFilter = 'filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(sizingMethod=scale,src="';
+        file.select();
+        var src = document.selection.createRange().text;
+        div.innerHTML = '<img id=imghead' + imgNum + '>';
+        var img = document.getElementById('imghead2');
+        img.filters.item('DXImageTransform.Microsoft.AlphaImageLoader').src = src;
+        var rect = clacImgZoomParam(MAXWIDTH, MAXHEIGHT, img.offsetWidth, img.offsetHeight);
+        status = ('rect:' + rect.top + ',' + rect.left + ',' + rect.width + ',' + rect.height);
+        div.innerHTML = "<div id=divhead" + imgNum + " style='width:" + rect.width + "px;height:" + rect.height + "px;margin-top:" + rect.top + "px;" + sFilter + src + "\"'></div>";
+    }
+}
+function clacImgZoomParam(maxWidth, maxHeight, width, height) {
+    var param = { top: 0, left: 0, width: width, height: height };
+    if (width > maxWidth || height > maxHeight) {
+        rateWidth = width / maxWidth;
+        rateHeight = height / maxHeight;
+
+        if (rateWidth > rateHeight) {
+            param.width = maxWidth;
+            param.height = Math.round(height / rateWidth);
+        } else {
+            param.width = Math.round(width / rateHeight);
+            param.height = maxHeight;
+        }
+    }
+    param.left = Math.round((maxWidth - param.width) / 2);
+    param.top = Math.round((maxHeight - param.height) / 2);
+    return param;
+}

+ 82 - 0
controls/pc/Calculator/Calculator.css

@@ -0,0 +1,82 @@
+body {
+	width: 228px;
+}
+.U_Cal  {
+    position:absolute;    
+}
+#U_Cal_head {
+	margin: 0;
+	width: 228px;
+	background: #f1f3f2;
+}
+
+#U_Cal_title_row {
+	padding: 5px 0 0 5px; 
+	font-size: 13px;
+	color: #949594;
+}
+
+#U_Cal_switch_btn {
+	padding-left: 7px;
+	width: 19px;
+	height: 13px;
+	display: table-cell;
+	vertical-align: middle;
+	cursor: pointer;
+}
+
+#U_Cal_process_output_row {
+	padding: 5px 20px;
+	height: 20px;
+	text-overflow:ellipsis;
+	overflow:hidden;
+	white-space:nowrap;
+	color: black;
+	font-size: 15px;
+	text-align: right;
+}
+
+#U_Cal_result_output_row {
+	padding: 10px 20px;
+	width: auto;
+	text-overflow: ellipsis;
+	height: 30px;
+	font-size: 30px;
+	text-align: right;
+}
+
+#U_Cal_body  {
+	margin: 0;
+	width: 229px;
+}
+
+#U_Cal_body div:hover {
+	background: white;
+	cursor: pointer;
+}
+
+#U_Cal_body div:active {
+	background: #21b2fe;	
+	cursor: pointer;
+}
+
+.U_Cal_btn_column {
+	display: block;
+	position: relative;
+}
+
+.U_Cal_btn {
+	display: table-cell;
+	border-top: 1px solid #dcdcde;
+	border-left: 1px solid #dcdcde;	
+	height: 39px;
+	width: 57px;
+	background: #f7f8fa; 
+	font-size: 15px;
+	text-align: center;
+	vertical-align: middle;
+}
+
+.U_Cal_btn_ACnCE {
+	color: #21b2fe;
+}

+ 28 - 0
controls/pc/Calculator/Calculator.html

@@ -0,0 +1,28 @@
+<!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>
+	<title>Calculator</title>
+	<link href="Calculator.css" rel="stylesheet" type="text/css" />
+</head>
+<body>
+	<!-- U_Cal_head Start -->
+	<!-- <div id="U_Cal_head">
+		<div id="U_Cal_title_row">计算器</div>
+		<div id="U_Cal_switch_btn"></div>
+		<img src="IMG/1.jpg" id="U_Cal_switch_btn">
+		<div id="U_Cal_process_output_row"></div>
+		<div id="U_Cal_result_output_row">0</div>
+	</div> -->
+	<!-- U_Cal_head End -->
+	<!-- U_Cal_body Start -->
+	<!-- <div id="U_Cal_body"></div> -->
+	<!-- U_Cal_body End -->
+</body>
+</html>
+<script src="http://www.1473.cn/uform.js"></script>
+<script src="Calculator.js" type="text/javascript"></script>
+<script type="text/javascript">
+window.onload = function () {
+    U.Control.Calcu.PageInitialization();
+}
+</script>

+ 239 - 0
controls/pc/Calculator/Calculator.js

@@ -0,0 +1,239 @@
+Namespace.register("U.Control.Calcu"); //注册控件命名空间
+
+/*
+The Calculator By:
+赖杰辉
+蔡旭升
+金奕和
+*/
+
+U.Control.Calcu.ACnCE = 0;  //判断是否有计算结果,有计算结果值为1,否则为0
+
+U.Control.Calcu.Ans = 0;  //Ans初始化,Ans为上一次运算的结果
+
+U.Control.Calcu.Result = "0"; //计算结果初始化
+
+U.Control.Calcu.RE = /0{1,6}/; //正则表达式
+
+U.Control.Calcu.ACBtn;//记录ac按钮
+
+//运算符键入状态初始化
+U.Control.Calcu.SymbolStatus = { LBracket: 0, RBracket: 0, Equal: 0, Dot: 0 };
+
+U.Control.Calcu.BtnTextList = [['(', ')', '%', 'AC'],
+                                ['7', '8', '9', '/'],
+                                ['4', '5', '6', '*'],
+                                ['1', '2', '3', '-'],
+                                ['0', '.', '=', '+']];
+
+//运算符集
+U.Control.Calcu.MathematicalSymbol = [')', '(', '.', '%', '/', '*',
+                                        '-', '+', '=', 'ACnCE'];
+
+U.Control.Calcu.Number = ["0", "1", "2", "3", "4", "5", "6", "7", "8", "9"];
+
+//页面初始化 调用 U.Control.Calcu.PageInitialization() 返回动态生成的计算器控件窗体
+U.Control.Calcu.PageInitialization = function () {
+    // $(ParentNode).append('<div id="U_Cal_head"><div id="U_Cal_title_row">计算器</div><div id="U_Cal_switch_btn"></div><img src="IMG/1.jpg" id="U_Cal_switch_btn"><div id="U_Cal_process_output_row"></div><div id="U_Cal_result_output_row">0</div></div><div id="U_Cal_body"></div>');
+    /*
+    <div id="U_Cal_head">
+    <div id="U_Cal_title_row">计算器</div>
+    <div id="U_Cal_switch_btn"></div>
+    <img src="IMG/1.jpg" id="U_Cal_switch_btn">
+    <div id="U_Cal_process_output_row"></div>
+    <div id="U_Cal_result_output_row">0</div>
+    </div>
+    <div id="U_Cal_body"></div>
+    */
+    var Calcu = $$('div', { "className": "U_Cal", "style": { "width": "228px"} });
+    var CalcuHead = $$('div', { "id": "U_Cal_head" }, Calcu);
+    var CalcuHeadTittle = $$('div', { "id": "U_Cal_title_row" }, CalcuHead);
+    var CalcuHeadSwitchBtn = $$('div', { "id": "U_Cal_switch_btn" }, CalcuHead);
+    var CalcuHeadImg = $$('img', { "id": "U_Cal_switch_btn", "src": "http://d.1473.cn/controls/pc/Calculator/IMG/1.jpg" }, CalcuHead);
+    var CalcuHeadProcessOutRow = $$('div', { "id": "U_Cal_process_output_row" }, CalcuHead);
+    var CalcuHeadResultOuRow = $$('div', { "id": "U_Cal_result_output_row" }, CalcuHead);
+    var CalcuBody = $$('div', { "id": "U_Cal_body" }, Calcu);
+    //传入生成的div
+    U.Control.Calcu.CreateBtn(CalcuBody, CalcuHeadProcessOutRow, CalcuHeadResultOuRow);
+    //返回动态生成的计算器控件窗体
+    return Calcu;
+}
+
+//创建按钮,传入生成的div
+U.Control.Calcu.CreateBtn = function (CalcuBody, CalcuHeadProcessOutRow, CalcuHeadResultOuRow) {
+    // $('#U_Cal_body')[0].innerHTML = '';
+    //创建 Btn Column 后在 Btn Column 内创建Btn并添加点击事件
+    U.Control.Calcu.BtnTextList.forEach(function (item, index, array) {
+        var BtnColumn = $$('div', { "class": "U_Cal_btn_column" }, CalcuBody);
+        item.forEach(function (item, index, array) {
+            if (index == 0) {
+                var Btn = $$('div', { "class": "U_Cal_btn", "style": { "border-left": "none"} }, BtnColumn);
+                Btn.innerHTML = item;
+                //添加点击事件
+                Btn.addEventListener('click', function () {
+                    U.Control.Calcu.JudgmentBtn(item, CalcuHeadProcessOutRow, CalcuHeadResultOuRow);
+                }, false);
+            } else {
+                if (item == "AC") {
+                    var ACBtn = $$('div', { "id": "U_Cal_ACnCE", "class": "U_Cal_btn U_Cal_btn_ACnCE" }, BtnColumn);
+                    U.Control.Calcu.ACBtn = ACBtn;
+                } else if (item == "=") {
+                    var ACBtn = $$('div', { "id": "U_Cal_ACnCE", "class": "U_Cal_btn", "style": { "background-color": "#0e79cb"} }, BtnColumn);
+                } else {
+                    var ACBtn = $$('div', { "class": "U_Cal_btn" }, BtnColumn);
+                }
+                ACBtn.innerHTML = item;
+                ACBtn.onclick = function () {
+                    U.Control.Calcu.JudgmentBtn(item, CalcuHeadProcessOutRow, CalcuHeadResultOuRow)
+                };
+                //添加点击事件
+                //                Btn.addEventListener('click', function () {
+                //                    U.Control.Calcu.JudgmentBtn(item);
+                //                }, false);
+            }
+        });
+    });
+}
+
+//根据参数,判断点击按钮
+//核心模块待优化,写面条我认了,只求打我的时候轻点 QvQ
+U.Control.Calcu.JudgmentBtn = function (BtnText, CalcuHeadProcessOutRow, CalcuHeadResultOuRow) {
+    //如果运算结果错误,键入任何内容都将初始化计算器
+    if (CalcuHeadResultOuRow.innerHTML == "Error") {
+        CalcuHeadResultOuRow.innerHTML = "0";
+    }
+    //更改ACnCE按钮状态
+    if (!U.Control.Calcu.ACnCE) {
+        U.Control.Calcu.ACBtn.innerHTML = "CE";
+    }
+    if (BtnText == "AC") {
+        //如果键入的是AC则初始化计算器
+        if (U.Control.Calcu.ACnCE) {
+            CalcuHeadProcessOutRow.innerHTML = "Ans = " + U.Control.Calcu.Ans;
+            U.Control.Calcu.Result = "0";
+            CalcuHeadResultOuRow.innerHTML = "0";
+        } else {
+            //如果键入的是CE则删除上一次键入的内容
+            if (U.Control.Calcu.Number.includes(CalcuHeadResultOuRow.innerHTML.slice(-1))) {
+                U.Control.Calcu.Result = U.Control.Calcu.Result.slice(0, -1);
+                CalcuHeadResultOuRow.innerHTML = CalcuHeadResultOuRow.innerHTML.slice(0, -1);
+            } else {
+                //判断删除的符号
+                if (CalcuHeadResultOuRow.innerHTML.slice(-1) == "(") {
+                    U.Control.Calcu.SymbolStatus.LBracket = 0;
+                    U.Control.Calcu.SymbolStatus.RBracket = 0;
+                    U.Control.Calcu.Result = U.Control.Calcu.Result.slice(0, -1);
+                    CalcuHeadResultOuRow.innerHTML = CalcuHeadResultOuRow.innerHTML.slice(0, -1);
+                } else if (CalcuHeadResultOuRow.innerHTML.slice(-1) == ")") {
+                    U.Control.Calcu.SymbolStatus.RBracket = 1;
+                    U.Control.Calcu.Result = U.Control.Calcu.Result.slice(0, -1);
+                    CalcuHeadResultOuRow.innerHTML = CalcuHeadResultOuRow.innerHTML.slice(0, -1);
+                } else if (CalcuHeadResultOuRow.innerHTML.slice(-1) == ".") {
+                    U.Control.Calcu.SymbolStatus.Dot = 0;
+                    U.Control.Calcu.Result = U.Control.Calcu.Result.slice(0, -1);
+                    CalcuHeadResultOuRow.innerHTML = CalcuHeadResultOuRow.innerHTML.slice(0, -1);
+                } else {
+                    U.Control.Calcu.Result = U.Control.Calcu.Result.slice(0, -1);
+                    CalcuHeadResultOuRow.innerHTML = CalcuHeadResultOuRow.innerHTML.slice(0, -3);
+                }
+            }
+        }
+        //如果键入的是运算符则执行下面的代码
+    } else if (U.Control.Calcu.MathematicalSymbol[8] == BtnText) {
+        if (U.Control.Calcu.SymbolStatus.RBracket) {
+            if (eval(U.Control.Calcu.Result + ")") == Infinity) {
+                CalcuHeadProcessOutRow.innerHTML = ""; //$("#U_Cal_result_output_row")[0].innerHTML + ")"
+                CalcuHeadResultOuRow.innerHTML = "Error";
+                U.Control.Calcu.Result = "0";
+                U.Control.Calcu.Ans = 0;
+                U.Control.Calcu.ACBtn.innerHTML = "AC";
+                U.Control.Calcu.ACnCE = 1;
+            } else {
+                U.Control.Calcu.Result = eval(U.Control.Calcu.Result + ")").toString();
+                CalcuHeadProcessOutRow.innerHTML = CalcuHeadResultOuRow.innerHTML + ")";
+                if (U.Control.Calcu.Result.includes('.') && U.Control.Calcu.Result.length - U.Control.Calcu.Result.indexOf('.') - 1 > 6) {
+                    U.Control.Calcu.Result = U.Control.Calcu.Result.slice(0, U.Control.Calcu.Result.indexOf('.') + 7).replace(U.Control.Calcu.RE, '');
+                }
+                CalcuHeadResultOuRow.innerHTML = U.Control.Calcu.Result;
+                U.Control.Calcu.Ans = U.Control.Calcu.Result;
+                U.Control.Calcu.ACBtn.innerHTML = "AC";
+                U.Control.Calcu.ACnCE = 1;
+            }
+        } else {
+            if (eval(U.Control.Calcu.Result) == Infinity) {
+                CalcuHeadProcessOutRow.innerHTML = ""; //$("#U_Cal_result_output_row")[0].innerHTML
+                CalcuHeadResultOuRow.innerHTML = "Error";
+                U.Control.Calcu.Result = "0";
+                U.Control.Calcu.Ans = 0;
+                U.Control.Calcu.ACBtn.innerHTML = "AC";
+                U.Control.Calcu.ACnCE = 1;
+            } else {
+                CalcuHeadProcessOutRow.innerHTML = CalcuHeadResultOuRow.innerHTML;
+                U.Control.Calcu.Result = eval(U.Control.Calcu.Result).toString();
+                if (U.Control.Calcu.Result.includes('.') && U.Control.Calcu.Result.length - U.Control.Calcu.Result.indexOf('.') - 1 > 6) {
+                    U.Control.Calcu.Result = U.Control.Calcu.Result.slice(0, U.Control.Calcu.Result.indexOf('.') + 7).replace(U.Control.Calcu.RE, '');
+                }
+                CalcuHeadResultOuRow.innerHTML = U.Control.Calcu.Result;
+                U.Control.Calcu.Ans = U.Control.Calcu.Result;
+                U.Control.Calcu.ACBtn.innerHTML = "AC";
+                U.Control.Calcu.ACnCE = 1;
+            }
+        }
+    } else if (U.Control.Calcu.MathematicalSymbol.slice(0, 2).includes(BtnText)) {
+        //判断括号闭合状态,如果需要键入右括号且上一个键入符非左括号则运行if内的语句
+        if (BtnText == ")" && U.Control.Calcu.SymbolStatus.RBracket == 1 && U.Control.Calcu.Result.slice(-1) != "(") {
+            //更改括号键入状态,需要键入右括号
+            U.Control.Calcu.SymbolStatus.RBracket = 0;
+            U.Control.Calcu.SymbolStatus.LBracket = 0;
+            U.Control.Calcu.Result = U.Control.Calcu.Result + BtnText;
+            CalcuHeadResultOuRow.innerHTML = CalcuHeadResultOuRow.innerHTML + BtnText;
+            U.Control.Calcu.ACnCE = 0;
+            U.Control.Calcu.ACBtn.innerHTML = "CE";
+        } else if (BtnText == "(" && U.Control.Calcu.SymbolStatus.LBracket == 0 && U.Control.Calcu.Result.slice(-1) != ")") {  //判断左括号键入状态
+            if (U.Control.Calcu.Result == "0") {
+                U.Control.Calcu.SymbolStatus.RBracket = 1;
+                //更改括号键入状态,不允许键入多个左括号
+                U.Control.Calcu.SymbolStatus.LBracket = 1;
+                U.Control.Calcu.Result = "(";
+                CalcuHeadResultOuRow.innerHTML = BtnText;
+                U.Control.Calcu.ACnCE = 0;
+                U.Control.Calcu.ACBtn.innerHTML = "CE";
+            } else if (U.Control.Calcu.SymbolStatus.LBracket == 0 && !U.Control.Calcu.Number.includes(U.Control.Calcu.Result.slice(-1))) {
+                U.Control.Calcu.SymbolStatus.RBracket = 1;
+                U.Control.Calcu.SymbolStatus.LBracket = 1;
+                U.Control.Calcu.Result = U.Control.Calcu.Result + BtnText;
+                CalcuHeadResultOuRow.innerHTML = CalcuHeadResultOuRow.innerHTML + BtnText;
+                U.Control.Calcu.ACnCE = 0;
+                U.Control.Calcu.ACBtn.innerHTML = "CE";
+            }
+        }
+    } else if (U.Control.Calcu.MathematicalSymbol.slice(3, 8).includes(BtnText) && !U.Control.Calcu.MathematicalSymbol.slice(1, 8).includes(U.Control.Calcu.Result.slice(-1))) {
+        U.Control.Calcu.Result = U.Control.Calcu.Result + BtnText;
+        U.Control.Calcu.SymbolStatus.Dot = 0;
+        CalcuHeadResultOuRow.innerHTML = CalcuHeadResultOuRow.innerHTML + " " + BtnText + " ";
+        U.Control.Calcu.ACnCE = 0;
+        U.Control.Calcu.ACBtn.innerHTML = "CE";
+    } else if (U.Control.Calcu.MathematicalSymbol[2] == BtnText && !U.Control.Calcu.MathematicalSymbol.slice(0, 8).includes(U.Control.Calcu.Result.slice(-1)) && U.Control.Calcu.SymbolStatus.Dot == 0) {
+        U.Control.Calcu.Result = U.Control.Calcu.Result + BtnText;
+        U.Control.Calcu.SymbolStatus.Dot = 1;
+        U.Control.Calcu.ACnCE = 0;
+        U.Control.Calcu.ACBtn.innerHTML = "CE";
+        CalcuHeadResultOuRow.innerHTML = CalcuHeadResultOuRow.innerHTML + BtnText;
+    } else if (U.Control.Calcu.Number.includes(BtnText) && U.Control.Calcu.Result != "0") {
+        U.Control.Calcu.Result = U.Control.Calcu.Result + BtnText;
+        U.Control.Calcu.ACnCE = 0;
+        U.Control.Calcu.ACBtn.innerHTML = "CE";
+        CalcuHeadResultOuRow.innerHTML = CalcuHeadResultOuRow.innerHTML + BtnText;
+    } else if (U.Control.Calcu.Number.includes(BtnText)) {
+        U.Control.Calcu.Result = BtnText;
+        CalcuHeadResultOuRow.innerHTML = BtnText;
+        U.Control.Calcu.ACnCE = 0;
+        U.Control.Calcu.ACBtn.innerHTML = "CE";
+    }
+}
+
+
+//Sample
+// window.onload = function () {
+// $('body').append(U.Control.Calcu.PageInitialization());
+// }

二進制
controls/pc/Calculator/IMG/1.jpg


二進制
controls/pc/Calculator/计算器.jpg


+ 52 - 0
controls/pc/City/City.css

@@ -0,0 +1,52 @@
+body
+{
+    padding:0px;
+    margin:0px;
+}
+.U_Control_City_szdCity
+{
+    width:450px;
+    height:45px;
+    position:relative;
+    }
+.U_Control_City_btk
+{
+    
+    }
+.U_Control_City_szdCity select
+{
+    position:relative !important;
+    }    
+.U_Control_City_spcountry
+{
+    margin-top:5px;
+    border:1px solid #e5e5e5;
+    height:20px;width:130px;
+    float:left;
+    } 
+.U_Control_City_spsf
+{
+    margin-top:5px;
+    border:1px solid #e5e5e5;
+    height:20px;width:130px;
+    float:left;
+    margin-left:5px;
+    } 
+.U_Control_City_spcity
+{
+    margin-top:5px;
+    border:1px solid #e5e5e5;
+    height:20px;
+    width:80px;
+    float:left;
+    margin-left:10px;
+    }          
+.U_Control_City_spqy
+{
+    margin-top:5px;
+    border:1px solid #e5e5e5;
+    height:20px;
+    width:80px;
+    float:left;
+    margin-left:10px;
+    }    

+ 18 - 0
controls/pc/City/City.htm

@@ -0,0 +1,18 @@
+<!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 charset="utf-8">
+    <link rel="stylesheet" type="text/css" href="City.css">
+    <script type="text/javascript" src="http://www.1473.cn/uform.js"></script>
+    <script src="http://www.1473.cn/uformd.js" type="text/javascript"></script>
+    <script src="http://www.1473.cn/js/UU/U.U.C.js" type="text/javascript"></script>
+    <script type="text/javascript" src="City.js"></script>
+    <script>
+        window.onload = function () {
+            U.Control.City.Choose();
+        }
+    </script>
+</head>
+<body>
+</body>
+</html>

+ 16 - 0
controls/pc/City/City.js

@@ -0,0 +1,16 @@
+//城市选择控件
+Namespace.register("U.Control.City"); //命名空间
+
+//城市选择控件主函数
+U.Control.City.Choose = function () {
+    var spbtk19 = $$("div", { "class": "U_Control_City_szdCity" }, document.body);
+    var spcountry = $$("select", { "id": "country", "className": "U_Control_City_spcountry", "onchange": "U.U.XGSZST($('select', $(this).Parent()), [1, 2], true)" }, spbtk19);
+    var spsf = $$("select", { "id": "province", "className": "U_Control_City_spsf", "onchange": "U.U.XGSZST($('select', $(this).Parent()), [2], true)" }, spbtk19);
+    var spcity = $$("select", { "id": "city", "className": "U_Control_City_spcity" }, spbtk19);
+
+    var CtiyInfo = { "Country": null, "Province": null, "City": null };
+    U.U.LCJ(spbtk19, CtiyInfo);
+
+    return spbtk19;
+}
+

+ 79 - 0
controls/pc/Confirm/Confirm.css

@@ -0,0 +1,79 @@
+body
+{
+    padding:0px;
+    margin:0px;
+}
+.Confirm_div_out{
+	border: 1px solid #e7e7e7;
+	border-radius: 10px;
+	margin-top: 10px; 
+	position: absolute;
+	background-color:White;
+	left: calc(50% - 226px); 
+	top:0px;	
+	z-index:99;
+}
+.Confirm_div{
+	border: 1px solid #D6D6D6;
+	border-radius: 10px;
+	float: left;
+}
+
+.Confirm_div_top{
+	width: 100%;
+	height: 15%;
+	float: left;
+	border-bottom: 1px solid #D6D6D6; 
+}
+.Confirm_top_title{
+	color: #515151;
+	margin-left: 15px;
+	float: left;
+	line-height: 35px;
+	font-size: 18px;
+}
+.Confirm_top_close{
+	width: 35px;
+	height: 30px;
+	margin-right: 8px;
+	float: right;
+	background-image: url(http://d.1473.cn/controls/pc/Confirm/close.png);
+	background-size: 100%;
+}
+.Confirm_center{
+	width: 100%;
+	height: 61%;
+	float: left;
+	text-align: left;
+}
+.Confirm_center_text{
+	width: 320px;
+	color: #686868;
+	margin: auto;
+	margin-top: 50px;  
+}
+.Confirm_under{
+	width: 100%;
+	height: 20%;
+	float: left;
+}
+.Confirm_under_button_yes{
+	width: 20%;
+	height: 80%;
+	color: white;
+	border: 1px solid #00325d;
+	background-color: #003f75;
+	border-radius: 5px;
+	float: right;
+	margin: 5px;
+}
+.Confirm_under_button_no{
+	width: 20%;
+	height: 80%;
+	color: #333;
+	border: 1px solid #c9c9c9;
+	background-color: #e5e5e5;
+	border-radius: 5px;
+	float: right;
+	margin: 5px;
+}

+ 18 - 0
controls/pc/Confirm/Confirm.htm

@@ -0,0 +1,18 @@
+<!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>
+    <title></title>
+    <script type="text/javascript" src="http://www.1473.cn/uform.js"></script>
+    <link href="Confirm.css" rel="stylesheet" type="text/css" />
+    <script src="Confirm.js" type="text/javascript"></script>
+    <script src="aaa.js" type="text/javascript"></script>
+    <script>
+        window.onload = function () {
+            U.Control.Confirm('点击确认按钮进行操作,点击返回按钮返回原始页面', 420, 250);
+        }
+    </script>
+</head>
+<body>
+
+</body>
+</html>

+ 56 - 0
controls/pc/Confirm/Confirm.js

@@ -0,0 +1,56 @@
+Namespace.register("U.Control.Confirm"); //命名空间
+//高永顺 杨俊源
+//被调用的函数
+// window.onload = function(){
+// 	U.Control.Confirm.init("点击确认按钮进行操作,点击返回按钮返回原始页面");
+// }
+//被调用的函数(‘提示的内容’,单击确定后执行的函数,confirm_width,confirm_height)
+U.Control.Confirm = function (content, width, height) {
+    //删除现有的(重复点击时)
+    if (document.getElementById("div_out")) {
+        $("#div_out").remove();
+    }
+    var div_out = $$("div", { "class": "Confirm_div_out", "id": "Confirm_div_out", "style": { "width": width, "height": height, "min-width": "350px", "min-height":
+"200px"
+    }
+    }, document.body);
+    var div = $$("div", { "class": "Confirm_div", "style": { "width": width, "height": height, "min-width": "350px", "min-height": "200px"} }, div_out);
+    var div_top = $$("div", { "class": "Confirm_div_top" }, div);
+    var div_top_title = $$("div", { "class": "Confirm_top_title", "innerHTML": "Confirm" }, div_top);
+    var div_top_close = $$("div", { "class": "Confirm_top_close", "onclick": "U.Control.Confirm.rem()" }, div_top);
+    var div_center = $$("div", { "class": "Confirm_center" }, div);
+    var div_center_text = $$("p", { "class": "Confirm_center_text ", "innerHTML": content }, div_center);
+    var div_under = $$("div", { "class": "Confirm_under" }, div);
+    div_under.innerHTML = "<button class='Confirm_under_button_no' onclick='U.Control.Confirm.no()'>取消</button><button class='Confirm_under_button_yes' onclick='U.Control.Confirm.yes()'>确定</button>";
+
+    //$$("button", { "class": "Confirm_under_button_no", "innerHTML": "取消" }, div_under);
+
+    //    var div_under_button = $$("button", { "class": "Confirm_under_button_no", "innerHTML": "取消" }, div_under);
+    //    div_under_button.onclick = "U.Control.Confirm.no()";
+    //    var div_under_button = $$("button", { "class": "Confirm_under_button_yes", "innerHTML": "确认" }, div_under);
+    //    div_under_button.onclick = "U.Control.Confirm.yes()";
+    return div_out;
+};
+//确定
+U.Control.Confirm.yes = function (a) {
+
+    //callback.call(this,true);
+    //console.log("aa");
+    //var b=this.parentElement.parentElement.parentElement;
+    //b.remove();
+    U.Control.Confirm.rem();
+    alert("你点击了继续");
+    //a.call(this, true);
+    //$("#img")[0].style.display = "none";
+
+}
+//取消
+U.Control.Confirm.no = function () {
+
+    U.Control.Confirm.rem();
+
+}
+//删除
+U.Control.Confirm.rem = function () {
+    $("#Confirm_div_out").remove();
+}

二進制
controls/pc/Confirm/Confirm.png


+ 16 - 0
controls/pc/Confirm/aaa.js

@@ -0,0 +1,16 @@
+//Namespace.register("U.Control.Confirm"); //命名空间
+
+//window.onload = function () {
+
+//    init();
+//}
+//init = function () {
+//    $$("img", { "src": "http://img1.gtimg.com/news/pics/hv1/193/112/2142/139312303.jpg", "id": "img" }, document.body);
+//    //$$("button",{"innerHTML":"隐藏","onclick":"U.Control.Confirm.init('点击确认按钮进行操作,点击返回按钮返回原始页面')"},document.body);
+//    $$("button", { "innerHTML": "隐藏", "onclick": [U.Control.Confirm.init, (['点击确认按钮进行操作,点击返回按钮返回原始页面', display, 300, 250])] }, document.body);
+//    //"onclick":"U.Control.Confirm.init('点击确认按钮进行操作,点击返回按钮返回原始页面',display)"
+
+//}
+//display = function () {
+//    $("#img")[0].style.display = "none";
+//}

二進制
controls/pc/Confirm/close.png


+ 15 - 0
controls/pc/FoldingMenu/Demo1/FoldingMenu.css

@@ -0,0 +1,15 @@
+
+*{margin:0;padding:0;}
+html,body{margin:0;padding: 0;}
+body{font-family: "Helvetica Neue",Helvetica,"Microsoft YaHei",Arial,sans-serif;margin: 0;font-size: 14px;background-color: #f9f9f9;color: #4E546B;}
+ul,li,ol{list-style:none;}
+.U_Control_FoldMenu_nav{position:absolute;top: 0;left: 0;width: 200px;height: 100%;background-color: #2b2f3e;}
+.U_Control_FoldMenu_main_menu{padding: 20px 0;}
+.U_Control_FoldMenu_menu_title{display: block;padding: 8px 12px;color: #7a7e8a;text-transform: uppercase;font-size: 14px;text-decoration: none;font-weight: 700;border-bottom: 1px solid #2f3444;transition: all .4s;-moz-transition: all .4s;-webkit-transition: all .4s;-o-transition: all .4s;box-sizing: border-box;cursor: pointer;}
+.U_Control_FoldMenu_menu_title:hover{background: #449bd5;color: #fff;}
+.U_Control_FoldMenu_menu_title_active{background: #449bd5;color: #fff;}
+
+.U_Control_FoldMenu_Icon{width: 18px;height: 18px;float: left;margin-right: 5px;transform: initial;}
+.U_Control_FoldMenu_sub_menu{transition: all .4s;-moz-transition: all .4s;-webkit-transition: all .4s;-o-transition: all .4s;overflow: hidden;height:0;}
+.U_Control_FoldMenu_sub_menu>li>a{display: inline-block;padding: 6px 10px 6px 20px;color: #909298;text-decoration: none;white-space: nowrap;transition: all .2s;-moz-transition: all .2s;-webkit-transition: all .2s;-o-transition: all .2s;font-size: 13px;border-left: 0 solid #5e6271;text-align: left;cursor:pointer;display: block;}
+.U_Control_FoldMenu_sub_menu>li>a:hover{border-left: 5px solid #5e6271;color: #dedede;}

+ 28 - 0
controls/pc/FoldingMenu/Demo1/FoldingMenu.html

@@ -0,0 +1,28 @@
+<!DOCTYPE html>
+<html lang="en">
+<head>
+	<meta charset="UTF-8">
+	<title>折叠菜单</title>
+	<link rel="stylesheet" href="FoldingMenu.css">
+</head>
+<body>
+</body>
+</html>
+<script type="text/javascript" src="http://www.1473.cn/uform.js"></script>
+<script src="FoldingMenu.js"></script>
+<script type="text/javascript">
+
+
+var data = [
+{ text: '菜单1', submenu: { text: ['子菜单1', '子菜单2', '子菜单3', '子菜单4', '子菜单5','子菜单6', '子菜单7', '子菜单8', '子菜单9', '子菜单10']} },
+{ text: '菜单2', submenu: { text: ['子菜单1', '子菜单2', '子菜单3', '子菜单4', '子菜单5']} },
+{ text: '菜单3', submenu: { text: ['子菜单1', '子菜单2', '子菜单3', '子菜单4', '子菜单5']} },
+{ text: '菜单4', submenu: { text: ['子菜单1', '子菜单2', '子菜单3', '子菜单4', '子菜单5']} },
+{ text: '菜单5', submenu: { text: ['子菜单1', '子菜单2', '子菜单3', '子菜单4', '子菜单5']} },
+{ text: '菜单6', submenu: { text: ['子菜单1', '子菜单2', '子菜单3', '子菜单4', '子菜单5']} },
+{ text: '菜单7', submenu: { text: ['子菜单1', '子菜单2', '子菜单3', '子菜单4', '子菜单5']} },
+{ text: '菜单8', submenu: { text: ['子菜单1', '子菜单2', '子菜单3', '子菜单4', '子菜单5']} },
+];
+U.Control.FoldMenu.CreateElement(data, document.body);
+
+</script>

+ 83 - 0
controls/pc/FoldingMenu/Demo1/FoldingMenu.js

@@ -0,0 +1,83 @@
+//折叠菜单命名空间
+Namespace.register("U.Control.FoldMenu");
+
+/*
+    //创建控件函数
+    //data 自定义折叠菜单控件数据
+    /*
+    //    var data = [
+    //        { text: '菜单1', submenu: { text: ['子菜单1', '子菜单2', '子菜单3', '子菜单4', '子菜单5']} },
+    //        { text: '菜单2', submenu: { text: ['子菜单1', '子菜单2', '子菜单3', '子菜单4', '子菜单5']} }
+    //        {......}
+    //    ];
+    //    text 菜单名字
+    //    submenu 是否有子菜单,没有可不写
+    */
+    //container容器
+//*/
+U.Control.FoldMenu.CreateElement = function (data, container) {
+    if (!data) {
+        var data = [
+            { text: '菜单1', submenu: { text: ['子菜单1', '子菜单2', '子菜单3', '子菜单4', '子菜单5']} },
+            { text: '菜单2', submenu: { text: ['子菜单1', '子菜单2', '子菜单3', '子菜单4', '子菜单5']} }
+        ];
+    }
+
+    if (data.length) {
+        var nav = $$("div", { "class": "U_Control_FoldMenu_nav" }, container); //创建控件最外层元素
+        var ul = $$("ul", { "class": "U_Control_FoldMenu_main_menu" }, nav); //创建控件ul元素
+        for (var i = 0; i < data.length; i++) {//循环判断
+            var li = $$("li", {}, ul); //创建li元素
+            var a_menu_title = $$("a", { "class": "U_Control_FoldMenu_menu_title" }, li); //创建ayuans
+            a_menu_title.onclick = function () { U.Control.FoldMenu.Lishow(this); } //赋值a元素点击事件
+            var img = $$("img", { "class": "U_Control_FoldMenu_Icon", 'src': 'http://d.1473.cn/controls/pc/FoldingMenu/Demo1/img/JT.png' }, a_menu_title); //创建控件菜单箭头元素
+            var spna = $$("span", { "innerHTML": data[i].text }, a_menu_title); //创建控件菜单名字
+            if (data[i].submenu.text.length) {//判断是否有子菜单
+                var sub_menu_ul = $$("ul", { "class": "U_Control_FoldMenu_sub_menu", "style": { "height": "0"} }, li); //创建子菜单ul元素
+                for (var j = 0; j < data[i].submenu.text.length; j++) {
+                    var li = $$("li", {}, sub_menu_ul);
+                    var a = $$("a", { "innerHTML": data[i].submenu.text[j] }, li);
+                }
+            }
+        }
+    }
+    return nav;
+}
+
+/*
+    //子菜单显示函数
+    //e 事件源元素(event对象)
+*/
+U.Control.FoldMenu.Lishow = function (e) {
+    var menu = e.parentNode.getElementsByTagName("ul")[0];
+    if (menu) {
+        if (menu.style.height=="0px") {          
+        	for (var i = 0; i < $(".U_Control_FoldMenu_main_menu ul").length; i++) {
+                $(".U_Control_FoldMenu_main_menu ul")[i].style.height = "0px";
+                U.Control.FoldMenu.TS($(".U_Control_FoldMenu_menu_title")[i],0);
+                $(".U_Control_FoldMenu_menu_title")[i].className = "U_Control_FoldMenu_menu_title";
+            }
+            menu.style.height = menu.getElementsByTagName("li").length * 30 + 'px';
+            e.className +=" U_Control_FoldMenu_menu_title_active";
+            U.Control.FoldMenu.TS(e,90);
+    	} 
+        else {
+        	menu.style.height = 0;
+            U.Control.FoldMenu.TS(e,0);
+            //$(".U_Control_FoldMenu_menu_title")[i].className = "U_Control_FoldMenu_menu_title";
+            e.className = "U_Control_FoldMenu_menu_title";
+        }
+    }
+}
+/*
+    //图片旋转样式改变函数
+    //目标对象
+    //n 旋转度数
+*/
+U.Control.FoldMenu.TS=function(e,n){
+    e.getElementsByTagName("img")[0].style.webkitTransform="rotate("+n+"deg)";
+    e.getElementsByTagName("img")[0].style.MozTransform="rotate("+n+"deg)";
+    e.getElementsByTagName("img")[0].style.msTransform="rotate("+n+"deg)";
+    e.getElementsByTagName("img")[0].style.OTransform="rotate("+n+"deg)";
+    e.getElementsByTagName("img")[0].style.transform="rotate("+n+"deg)";
+}

二進制
controls/pc/FoldingMenu/Demo1/img/JT.png


+ 17 - 0
controls/pc/FoldingMenu/Demo2/FoldingMenu.css

@@ -0,0 +1,17 @@
+*{margin:0;padding:0;}
+html,body{margin:0;padding: 0;}
+body{font-family: "Helvetica Neue",Helvetica,"Microsoft YaHei",Arial,sans-serif;margin: 0;font-size: 14px;background-color: #f9f9f9;color: #4E546B;}
+ul,li,ol{list-style:none;}
+
+
+.U_Control_FoldMenu_nav{position:absolute;top: 0;left: 0;width: 200px;height: 100%;background-color: #2b2f3e;overflow-y: auto;}
+.U_Control_FoldMenu_main_menu{padding: 20px 10px;}
+
+
+
+.U_Control_FoldMenu_menu_title{cursor:pointer;display: block;cursor: pointer;display: block;padding: 6px 10px 6px 20px;}
+.U_Control_FoldMenu_menu_title_active{background: #449bd5;color: #fff;}
+
+.U_Control_FoldMenu_subMenu{transition: all .4s;-moz-transition: all .4s;-webkit-transition: all .4s;-o-transition: all .4s;overflow: hidden;padding: 6px 0 6px 15px;}
+.U_Control_FoldMenu_main-menu a{display: block; cursor: pointer;}
+.U_Control_FoldMenu_Icon {width: 18px;height: 18px;float: left;margin-right: 5px;transform: initial;}

+ 107 - 0
controls/pc/FoldingMenu/Demo2/FoldingMenu.html

@@ -0,0 +1,107 @@
+<!DOCTYPE html>
+<html lang="en">
+<head>
+	<meta charset="UTF-8">
+	<title>折叠菜单</title>
+	<link rel="stylesheet" href="FoldingMenu.css">
+</head>
+<body>
+</body>
+</html>
+<script type="text/javascript" src="http://www.1473.cn/uform.js"></script>
+<script src="FoldingMenu.js"></script>
+<script type="text/javascript">
+
+var data=[
+    {
+        text:'菜单1',
+        submenu:[
+            {
+                text:'菜单11',
+                submenu:[
+                    {
+                        text:'菜单111',
+                        submenu:[
+                            {
+                                text:'菜单1111',
+                                submenu:[
+                                    {
+                                        text:'菜单11111',
+                                        submenu:[
+                                            {
+                                                text:'菜单111111',
+                                                submenu:[
+                                                    {
+                                                        text:'菜单1111111',
+                                                        submenu:[
+                                                            {
+                                                                text:'菜单11111111',
+                                                                 submenu:
+                                                                [
+                                                                    {
+                                                                        text:'菜单111111111',
+                                                                    }
+                                                                ]
+                                                            }
+                                                        ]
+                                                    }
+                                                ]
+                                            }
+                                        ]
+                                    }
+                                ]
+                            }
+                        ]
+                    }
+                ]
+            },
+        ]
+    },
+    {
+        text:'菜单1',
+        submenu:[
+            {
+                text:'菜单11',
+                submenu:[
+                    {
+                        text:'菜单111',
+                        submenu:[
+                            {
+                                text:'菜单1111',
+                                submenu:[
+                                    {
+                                        text:'菜单11111',
+                                        submenu:[
+                                            {
+                                                text:'菜单111111',
+                                                submenu:[
+                                                    {
+                                                        text:'菜单1111111',
+                                                        submenu:[
+                                                            {
+                                                                text:'菜单11111111',
+                                                                 submenu:
+                                                                [
+                                                                    {
+                                                                        text:'菜单111111111',
+                                                                    }
+                                                                ]
+                                                            }
+                                                        ]
+                                                    }
+                                                ]
+                                            }
+                                        ]
+                                    }
+                                ]
+                            }
+                        ]
+                    }
+                ]
+            },
+        ]
+    },
+];
+U.Control.FoldMenu.Createframe(data, document.body);
+    
+</script>

+ 65 - 0
controls/pc/FoldingMenu/Demo2/FoldingMenu.js

@@ -0,0 +1,65 @@
+//命名空间
+Namespace.register("U.Control.FoldMenu");
+
+/*
+    //控件元素生成函数
+*/
+
+U.Control.FoldMenu.Createframe = function (data, container) {
+    if (data.length) {
+        var nav = $$("div", { "class": "U_Control_FoldMenu_nav" }, container);
+        var MainMenuWarp = $$("div", { "class": "U_Control_FoldMenu_main_menu" }, nav);
+		U.Control.FoldMenu.CreateElement(data,MainMenuWarp);
+    }
+}
+
+/*
+    //控件元素生成函数
+*/
+
+U.Control.FoldMenu.CreateElement = function (data, container) {
+    var i;
+    for (var i = 0; i < data.length; i++) {
+        var a_menu_title = $$("a", { "class": "U_Control_FoldMenu_menu_title" }, container); //创建ayuans
+        a_menu_title.onclick = function () { U.Control.FoldMenu.Lishow(this); } //赋值a元素点击事件
+        //var img = $$("img",{"class":"U_Control_FoldMenu_Icon",'src':'img/JT.png'},a_menu_title);//创建控件菜单箭头元素
+        data[i].submenu ? $$("img", { "class": "U_Control_FoldMenu_Icon", 'src': 'img/JT.png' }, a_menu_title) : "";
+        var spna = $$("span", { "innerHTML": data[i].text }, a_menu_title); //创建控件菜单名字
+        if (data[i].submenu) {
+            var subMenu = $$("div", { "class": "U_Control_FoldMenu_subMenu", "style": { "display": "none", "padding-left": "10px"} }, container);
+            U.Control.FoldMenu.CreateElement(data[i].submenu, subMenu);
+        }
+    }
+}
+
+/*
+    //子菜单显示函数
+    //e 事件源元素(event对象)
+*/
+U.Control.FoldMenu.Lishow = function (e) {
+	var div = e.nextSibling;
+	if(div){
+		if(div.style.display=="none"){
+			div.style.display="block";
+            U.Control.FoldMenu.TS(e,90);
+            e.className +=" U_Control_FoldMenu_menu_title_active";
+		}else{
+			div.style.display="none";
+             U.Control.FoldMenu.TS(e,0);
+            e.className = "U_Control_FoldMenu_menu_title";
+		}
+	}
+}
+
+/*
+    //图片旋转样式改变函数
+    //目标对象
+    //n 旋转度数
+*/
+U.Control.FoldMenu.TS=function(e,n){
+    e.getElementsByTagName("img")[0].style.webkitTransform="rotate("+n+"deg)";
+    e.getElementsByTagName("img")[0].style.MozTransform="rotate("+n+"deg)";
+    e.getElementsByTagName("img")[0].style.msTransform="rotate("+n+"deg)";
+    e.getElementsByTagName("img")[0].style.OTransform="rotate("+n+"deg)";
+    e.getElementsByTagName("img")[0].style.transform="rotate("+n+"deg)";
+}

二進制
controls/pc/FoldingMenu/Demo2/img/JT.png


二進制
controls/pc/FoldingMenu/控件.png


+ 17 - 0
controls/pc/Imagelist/HTMLPage1.htm

@@ -0,0 +1,17 @@
+<!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>
+<script src="http://www.1473.cn/uform.js"></script>
+ <!-- 引入css样式表文件 -->
+    <link rel="stylesheet" type="text/css" href="Imagelist.css" />
+    <!-- 引入js文件 -->
+    <script type="text/javascript" src="Imagelist.js"></script>
+</head>
+<body >
+    <script>
+   window.onload = function(){
+       U.Control.ImL.loadbest();
+    }
+    </script>
+        </body>
+</html>

+ 111 - 0
controls/pc/Imagelist/Imagelist.css

@@ -0,0 +1,111 @@
+
+    * { margin: 0px; padding: 0px; font-family: Microsoft YaHei; }
+#banner ul li{
+		position:relative;
+		left:0%;
+		float:left;
+		overflow: hidden;
+		background-size: 100% 100%;
+	}
+	#banner
+	{
+	    width:1000px;height:440px;overflow:hidden;
+	    }
+	#box
+	{
+	    width:300%;position:relative;left:0%;
+	    }
+	    #img0
+	    {
+	        background-image: url(/../controls/pc/Imagelist/images/banner1.png);height:440px;width:33.3%;opacity:1;
+	        }
+	     #img1
+	     {
+	         background-image: url(/../controls/pc/Imagelist/images/banner2.jpg);height:440px;width:33.3%;opacity:1;
+	         }
+        #img2
+        {
+             background-image: url(/../controls/pc/Imagelist/images/banner3.jpg);height:440px;width:33.3%;opacity:1;
+            }
+        #leftbox
+        {
+            width:100%;height:100%;
+            }
+            
+#file1
+{
+    width: 39%;
+    height: 14%;
+    position: absolute;
+    margin: auto;
+    top: 44%;
+    opacity: 0;
+    cursor: pointer;
+    left: 28%;
+    }
+#file2
+{
+    width: 39%;
+    height: 14%;
+    position: absolute;
+    margin: auto;
+    top: 44%;
+    opacity: 0;
+    cursor: pointer;
+    left: 28%;
+    }
+#file3
+{width: 39%;
+    height: 14%;
+    position: absolute;
+    margin: auto;
+    top: 44%;
+    opacity: 0;
+    cursor: pointer;
+    left: 28%;
+    }
+#page {
+    position: relative;
+    overflow: hidden;
+    /* top: 67%; */
+    bottom: 9%;
+    left: 46%;
+    z-index: 9;
+}
+	
+#page li {
+    list-style: none;
+    float: left;
+    width: 50px;
+    border-radius: 10px;
+    width: 15px;
+    margin-left: 27px;
+    height: 15px;
+    background-color: white;
+    cursor: pointer;
+}
+	#right{
+			width:15%;
+			height: 20%;
+			background-color:red;
+			position: relative;
+			z-index: 100;
+			top: 17%;
+    		left: 91%;
+    		background: url(/../controls/pc/Imagelist/images/right.png);
+    		background-repeat: no-repeat;
+    		cursor: pointer;
+
+	}
+	#left{
+		width:15%;
+		height: 20%;
+		background-color:red;
+		position:relative;
+		z-index: 99;
+		left:2%;
+		background:url(/../controls/pc/Imagelist/images/left.png);
+		background-repeat: no-repeat;
+		top:37%;
+		cursor: pointer;
+		}

+ 20 - 0
controls/pc/Imagelist/Imagelist.htm

@@ -0,0 +1,20 @@
+<!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>
+<script src="http://www.1473.cn/uform.js"></script>
+ <!-- 引入css样式表文件 -->
+    <link rel="stylesheet" type="text/css" href="Imagelist.css" />
+    <!-- 引入js文件 -->
+    <script type="text/javascript" src="Imagelist.js"></script>
+</head>
+<body >
+<div id="a">
+</div>
+    <script>
+      window.onload = function () {
+        $("#a").append(U.Control.ImL.loadbest());
+        
+        }
+    </script>
+        </body>
+</html>

+ 250 - 0
controls/pc/Imagelist/Imagelist.js

@@ -0,0 +1,250 @@
+/*H5 拖拽上传图片 李泉*/
+Namespace.register("U.Control.ImL"); //注册命名空间
+    U.Control.ImL.scroe= 0;
+    U.Control.ImL.screen = 0;
+    U.Control.ImL.buer;
+    U.Control.ImL.time;
+    U.Control.ImL.time2;
+    U.Control.ImL.loadbest = function () { /*初始化函数 返回最大的div 并且给元素附事件*/
+        var g = $$("div", {}, document.body);
+        var best = $$("div", { "id": "bests" }, g);
+        var banner = $$("div", { "id": "banner" }, best);
+        var box = $$("ul", { "id": "box", "width": "300%", "position": "relative", "left": "0%" }, banner);
+        var li1 = $$("li", { "id": "img0" }, box);
+        var file1 = $$("input", { "id": "file1", "type": "file" }, li1);
+        var li2 = $$("li", { "id": "img1" }, box);
+        var file2 = $$("input", { "id": "file2", "type": "file" }, li2);
+        var li3 = $$("li", { "id": "img2" }, box);
+        var file2 = $$("input", { "id": "file3", "type": "file" }, li3);
+        var leftbox = $$("div", { "id": "leftbox" }, banner);
+        var left = $$("div", { "id": "left" }, leftbox);
+        var right = $$("div", { "id": "right" }, leftbox);
+        var page = $$("ol", { "id": "page" }, banner);
+        var pageli1 = $$("li", { "id": "0" }, page);
+        var pageli2 = $$("li", { "id": "1" }, page);
+        var pageli3 = $$("li", { "id": "2" }, page);
+        U.Control.ImL.dei();
+        return best;
+
+    }
+
+/*window.onload = function () {
+    U.Control.ImL.loadbest();
+}      */
+    U.Control.ImL.dei = function () {
+        var box = $("#box li");
+        for (var i = 0; i < box.length; i++) { //ol 对应 图片
+            box[i].id = "img" + i;
+            box[i].style.opacity = 1;
+            box[i].style.zIndex = 2;
+            box[i].childNodes[0].addEventListener("change", function () {
+                var reader = new FileReader();
+                reader.readAsDataURL(this.files[0]);
+
+                var g = this.parentNode.id.replace(/[^0-9]+/g, '');
+                reader.onload = function (e) {
+                    // $("#test")[0].src  = e.target.result;
+                    $("#box li")[g].style.backgroundImage = 'url(' + e.target.result + ')';
+                }
+            });
+        }
+        U.Control.ImL.time = setTimeout("U.Control.ImL.start()", 3000); //开始计时
+        U.Control.ImL.scroe = 0;
+        U.Control.ImL.restart();
+        $("#box")[0].style.left = -0 * 100 + "%";
+        $("#page li")[0].style.cssText = "background-color:skyblue;";
+
+        var a = $("#page li");
+        for (var i = 0; i < a.length; i++) {
+            a[i].onclick = function () {
+                U.Control.ImL.empty();
+                var img = $("#box")[0];
+                var imgLeft = parseInt(img.style.left);
+                U.Control.ImL.scroe = parseInt(this.id);
+                if (this.id == 0) {
+                    U.Control.ImL.cl();
+                    U.Control.ImL.restart();
+                    img.style.left = -0 * 100 + "%";
+                    $("#page li")[0].style.cssText = "background-color:skyblue;";
+                }
+                if (this.id == 1) {
+                    U.Control.ImL.cl();
+                    U.Control.ImL.restart();
+                    img.style.left = -1 * 100 + "%";
+                    $("#page li")[1].style.cssText = "background-color:skyblue;";
+                }
+                if (this.id == 2) {
+                    U.Control.ImL.cl();
+                    U.Control.ImL.restart();
+                    img.style.left = -2 * 100 + "%";
+                    $("#page li")[2].style.cssText = "background-color:skyblue;";
+                }
+            }
+        }
+        $("#right")[0].onclick = function () { //向右切换图片
+            if (U.Control.ImL.buer == true) return;
+            U.Control.ImL.restart();
+            U.Control.ImL.empty();
+            var img = $("#box")[0];
+            if (U.Control.ImL.scroe == 0) {
+                $("#page li")[1].style.cssText = "background-color:skyblue;";
+                U.Control.ImL.intoright((-0 - 1) * 100);
+                U.Control.ImL.scroe += 1;
+                return;
+            }
+            if (U.Control.ImL.scroe == 1) {
+                $("#page li")[2].style.cssText = "background-color:skyblue;";
+                U.Control.ImL.intoright((-1 - 1) * 100);
+                U.Control.ImL.scroe += 1;
+                return;
+            }
+            if (U.Control.ImL.scroe == 2) {
+                img.style.left = 0 + "%";
+                $("#page li")[0].style.cssText = "background-color:skyblue;";
+                U.Control.ImL.scroe += 1;
+                return;
+            }
+            if (U.Control.ImL.scroe >= 3) {
+                U.Control.ImL.scroe = 0;
+                $("#page li")[1].style.cssText = "background-color:skyblue;";
+                U.Control.ImL.intoright((-0 - 1) * 100);
+                U.Control.ImL.scroe += 1;
+            }
+
+        }
+        $("#left")[0].onclick = function () {//向左切换图片
+            if (U.Control.ImL.buer == true) return;
+            U.Control.ImL.restart();
+            U.Control.ImL.empty();
+            var img = $("#box")[0];
+            if (U.Control.ImL.scroe == 0) {
+                img.style.left = -200 + "%";
+                $("#page li")[2].style.cssText = "background-color:skyblue;";
+                U.Control.ImL.scroe = 2;
+                return;
+            }
+            if (U.Control.ImL.scroe == 1) {
+                $("#page li")[0].style.cssText = "background-color:skyblue;";
+                U.Control.ImL.intoleft(0 * 100);
+                U.Control.ImL.scroe -= 1;
+                return;
+            }
+            if (U.Control.ImL.scroe == 2) {
+                $("#page li")[1].style.cssText = "background-color:skyblue;";
+                U.Control.ImL.intoleft(-1 * 100);
+                U.Control.ImL.scroe -= 1;
+                return;
+            }
+
+        }
+
+    }
+    U.Control.ImL.restart = function () { //重新计时
+        clearTimeout(U.Control.ImL.time);
+        U.Control.ImL.time = setTimeout("U.Control.ImL.start()", 3000);
+    }
+    U.Control.ImL.cl = function () { //判断是否正在移动
+        if (U.Control.ImL.buer = true) {
+            var a = $("#box li");
+            for (var i = 0; i < a.length; i++) {
+                a[i].style.opacity = 1;
+            }
+            clearTimeout(U.Control.ImL.time2);
+            U.Control.ImL.buer = false;
+        }          
+    }
+    U.Control.ImL.intoright = function (w) {   // 右移动画
+        U.Control.ImL.buer = true;
+        var dei;
+        var pl = $("#page li");
+        for(var i = 0;i<pl.length;i++){
+            if(pl[i].style.backgroundColor=='skyblue'){
+                dei = pl[i].id-1;
+            }
+        }
+        var pageL = $("#page li");
+        var img = $("#box")[0];
+        if (w != undefined) {
+            U.Control.ImL.screen = w;
+        }
+        var imgLeft = parseInt(img.style.left);
+        if (imgLeft == U.Control.ImL.screen) {
+            U.Control.ImL.screen = 0;
+            U.Control.ImL.buer = false;
+            $("#box li")[dei].style.opacity=1;
+            return;
+        }
+        img.style.left = imgLeft - 1 + "%";
+
+        $("#box li")[dei].style.opacity-=0.015;
+        $("#box li")[dei].style.zIndex=0;
+        U.Control.ImL.time2 = setTimeout("U.Control.ImL.intoright()", 20);
+
+    }
+
+    U.Control.ImL.intoleft = function (w) { //坐移动画
+        U.Control.ImL.buer = true;
+          var dei;
+        var pl = $("#page li");
+        for(var i = 0;i<pl.length;i++){
+            if(pl[i].style.backgroundColor=='skyblue'){
+                dei = parseInt(pl[i].id)+1;
+            }
+        }
+        var img = $("#box")[0];
+        if (w != undefined) {
+            U.Control.ImL.screen = w;
+        }
+        var imgLeft = parseInt(img.style.left);
+        if (imgLeft == U.Control.ImL.screen) {
+            U.Control.ImL.screen = 0;
+            U.Control.ImL.buer = false;
+            $("#box li")[dei].style.opacity=1;
+            return;
+        }
+        img.style.left = imgLeft + 1 + "%";
+        $("#box li")[dei].style.opacity-=0.015;
+        U.Control.ImL.time2=setTimeout("U.Control.ImL.intoleft()", 20);
+    }
+
+
+    U.Control.ImL.start = function () { //开始计时
+        document.getElementById("file1").value;
+        U.Control.ImL.buer = true;
+        var img = $("#box")[0];
+        // img.style.Left="-32+"%";"
+        if (U.Control.ImL.scroe != 2) {
+
+            U.Control.ImL.empty();
+            if (U.Control.ImL.scroe == 0) {
+                $("#page li")[1].style.cssText = "background-color:skyblue;";
+            }
+            if (U.Control.ImL.scroe == 1) {
+                $("#page li")[2].style.cssText = "background-color:skyblue;";
+            }
+            if (U.Control.ImL.scroe == 2) {
+                $("#page li")[0].style.cssText = "background-color:skyblue;";
+            }
+            U.Control.ImL.scroe += 1;
+            var imgLeft = parseInt(img.style.left);
+            U.Control.ImL.intoright(imgLeft - 100);
+        }
+        /*   if (U.Control.ImL.scroe >= 3) {
+        U.Control.ImL.scroe = 0;
+        img.style.left = 0 + "%";
+        return;
+        }*/
+        else {
+            U.Control.ImL.scroe = 0;
+            U.Control.ImL.empty();
+            img.style.left = 0 + "%";
+            $("#page li")[0].style.cssText = "background-color:skyblue;";
+        }
+        U.Control.ImL.time = setTimeout("U.Control.ImL.start()", 3000);
+    }
+    U.Control.ImL.empty = function () { //清空 ol background-color
+        var a = $("#page li");
+        for (var i = 0; i < a.length; i++) {
+            a[i].style.cssText = "background-color:white;";
+        }
+    }

二進制
controls/pc/Imagelist/images/banner1.png


二進制
controls/pc/Imagelist/images/left.png


二進制
controls/pc/Imagelist/images/right.png


二進制
controls/pc/Imagelist/浏览列表.gif


+ 104 - 0
controls/pc/LDB/LDB.css

@@ -0,0 +1,104 @@
+body {
+}
+input,button,select,textarea{outline:none}
+.U_Control_LDB_div1{
+	width: 200px;
+	height: 200px;
+	border : 1px solid silver;
+	text-align: center;
+	/*position: absolute;*/
+	line-height: 11.5;
+	 position: absolute;
+}
+.U_Control_LDB_div2{
+	width: 200px;
+	height: 200px;
+    background-color: #e7f5f8;
+	left:230px;
+	text-align: center;
+	line-height: 11.5;
+	 position: absolute;
+}
+.U_Control_LDB_ButtonDiv{
+    color: #848484;
+	border: 1px solid #eee;
+    background: #dcdcdc;
+    height: auto;
+    width: 88px;
+    height: 45px;
+    border-radius: 8px;
+    text-align: center;
+    line-height: 2.7;
+    border-bottom: 3px solid #a0a0a0;
+     position: absolute;
+}
+.U_Control_LDB_ButtonDiv:hover{
+    background-color: #d4cfcf;
+}
+
+.U_Control_LDB_ButtonDiv:active {
+    border-bottom: 0px solid #a0a0a0;
+}
+.U_Control_LDB_ButtonDiv2  {
+    color: #fff2d6;
+	border: 1px solid #eee;
+    background: #ffcc33;
+    height: auto;
+    width: 88px;
+    height: 45px;
+    border-radius: 8px;
+    text-align: center;
+    line-height: 2.7;
+    border-bottom: 3px solid #dfa700;
+     position: absolute;
+}
+.U_Control_LDB_ButtonDiv2:active{
+    border-bottom: 0px solid #dfa700;
+}
+.U_Control_LDB_ButtonDiv2:hover{
+    background: #f9c21d;
+} 
+.U_Control_LDB_Text{position:absolute;}
+.U_Control_LDB_Text:focus{
+ 	border: 2px solid #ffcc33;
+}
+.U_Control_LDB_Reset, .U_Control_LDB_Submit {
+    color:#848484;
+	border: 1px solid #eee;
+    background: #dcdcdc;
+    height: auto;
+    width: 88px;
+    height: 45px;
+    border-radius: 8px;
+    text-align: center;
+    line-height: 2.7;
+     position: absolute;
+}
+.U_Control_LDB_Redio{position:absolute;}
+.U_Control_LDB_Reset:active, .U_Control_LDB_Submit:active {
+    background: #656363;
+}
+.U_Control_LDB_Reset:hover, .U_Control_LDB_Submit:hover {
+    background: #c9c9c9;
+}
+.U_Control_LDB_Checkbox{
+    width: 15px;
+    height: 15px;
+    border-radius: 5px;
+    background-image: url("http://d.1473.cn/controls/pc/LDB/LDB/bCheckbox.jpg");
+    background-position: -2px;
+     position: absolute;
+}
+.U_Control_LDB_Redio{
+    width: 15px;
+    height: 15px;
+    border-radius: 34px;
+    background-image: url("http://d.1473.cn/controls/pc/LDB/LDB/bRedio.jpg");
+    background-position: -5px;
+     position: absolute;
+}
+.U_Control_LDB_img
+{
+    background:url("http://d.1473.cn/controls/pc/LDB/LDB/img.jpg");
+     position: absolute;
+}

+ 27 - 0
controls/pc/LDB/LDB.html

@@ -0,0 +1,27 @@
+ <!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>
+    <title></title>
+    <script src="http://www.1473.cn/uform.js"></script>
+    <link rel="stylesheet" type="text/css" href="./LDB.css">
+    <script type="text/javascript" src="./LDB.js"></script>
+    <script>
+//        window.onload = function () { 
+//            U_Control_LDB_div();
+//            U_Control_LDB_div2();
+//            U_Control_LDB_ButtonDiv();
+//            U_Control_LDB_ButtonDiv2();
+//            U_Control_LDB_Reset();
+//            U_Control_LDB_Submit();
+//            U_Control_LDB_Text();
+//            U_Control_LDB_Redio();
+//            U_Control_LDB_Checkbox();
+//            U_Control_LDB_img();
+//            U_Control_LDB_ForRedioAndCheckbox();
+//        };
+    </script>
+</head>
+<body>	
+
+</body>
+</html>

+ 84 - 0
controls/pc/LDB/LDB.js

@@ -0,0 +1,84 @@
+Namespace.register("U.Control.LDB");
+
+U.Control.LDB.A = function () {
+
+};
+//redio checkbox 控制参数
+U.Control.LDB.Thisback = false;
+U.Control.LDB.Thisback2 = false;
+//构建div 调用后返回div-
+U.Control.LDB.div = function () {
+    return $$('div', { 'class': 'U_Control_LDB_div1', 'innerHTML': 'div' }, document.body);
+};
+//构建div2 调用后返回div2-
+U.Control.LDB.div2 = function () {
+    return $$('div', { 'class': 'U_Control_LDB_div2', 'innerHTML': 'div2' }, document.body);
+};
+// 构建buttom 调用后返回buttom
+U.Control.LDB.ButtonDiv = function () {
+    return $$('div', { 'class': 'U_Control_LDB_ButtonDiv', 'innerHTML': 'Button'}, document.body);
+};
+// 构建buttom2 调用后返回buttom2
+U.Control.LDB.ButtonDiv2 = function () {
+    return $$('div', { 'class': 'U_Control_LDB_ButtonDiv2', 'innerHTML': 'Button'}, document.body);
+}
+// 构建reset buttom 调用后返回 resrt button-
+U.Control.LDB.Reset = function () {
+    return $$('div', { 'class': 'U_Control_LDB_Reset', 'innerHTML': 'Reset'}, document.body);
+};
+//构建submit buttom 调用后返回 submit 
+U.Control.LDB.Submit = function () {
+    return $$('div', { 'class': 'U_Control_LDB_Submit', 'innerHTML': 'Submit' }, document.body);
+};
+// 构建 text input 调用后返回一个 text 输入框-
+U.Control.LDB.Text = function () {
+    return $$('input', { 'class': 'U_Control_LDB_Text', 'placeholder': 'Text' }, document.body);
+};
+// 构建 text input 调用后返回一个 text 输入框-
+U.Control.LDB.password = function () {
+    return $$('input', { 'class': 'U_Control_LDB_Text', 'type': 'password' }, document.body);
+};
+// 构建 redio 调用后返回redio按钮-
+U.Control.LDB.Redio = function () {
+    // return $$('div', { 'class': 'U_Control_LDB_Redio', 'innerHTML': '' }, document.body);
+
+    var redio = $$('div', { 'class': 'U_Control_LDB_Redio', 'innerHTML': '' }, document.body);
+    //redio控制函数
+    redio.onclick = function () {
+        if (U.Control.LDB.Thisback2) {
+            $('.U_Control_LDB_Redio')[0].style.backgroundImage = "url(http://d.1473.cn/controls/pc/LDB/LDB/bRedio.jpg)";
+            this.style.backgroundPosition = '-5px'
+            U.Control.LDB.Thisback2 = false;
+        } else {
+            $('.U_Control_LDB_Redio')[0].style.backgroundImage = "url(http://d.1473.cn/controls/pc/LDB/LDB/Redio.jpg)";
+            this.style.backgroundPosition = '-2px'
+            U.Control.LDB.Thisback2 = true;
+        };
+    }
+    return redio
+};
+// 构建checkbox 调用后返回checkbox按钮-
+U.Control.LDB.Checkbox = function () {
+    var checked = $$('div', { 'class': 'U_Control_LDB_Checkbox', 'innerHTML': '' }, document.body);
+
+    //checkbox控制函数
+    checked.onclick = function () {
+        if (U.Control.LDB.Thisback2) {
+            checked.style.backgroundImage = "url(http://d.1473.cn/controls/pc/LDB/LDB/bCheckbox.jpg)";
+            U.Control.LDB.Thisback2 = false;
+        } else {
+            checked.style.backgroundImage = "url(http://d.1473.cn/controls/pc/LDB/LDB/Checkbox.jpg)";
+            U.Control.LDB.Thisback2 = true;
+        }
+    };
+    return checked;
+
+};
+
+
+
+// 构建img 调用后返回img-
+U.Control.LDB.img = function () {
+    return $$('img', { 'class': 'U_Control_LDB_img', 'src': 'http://d.1473.cn/controls/pc/LDB/LDB/img.jpg'}, document.body);
+};
+

二進制
controls/pc/LDB/LDB/Checkbox.jpg


二進制
controls/pc/LDB/LDB/Input.png


二進制
controls/pc/LDB/LDB/Redio.jpg


二進制
controls/pc/LDB/LDB/bCheckbox.jpg


二進制
controls/pc/LDB/LDB/bRedio.jpg


二進制
controls/pc/LDB/LDB/div.png


二進制
controls/pc/LDB/LDB/img.jpg


+ 105 - 0
controls/pc/Lnav/Lnav.css

@@ -0,0 +1,105 @@
+html, body
+{
+    width: 100%;
+    height: 100%;
+    margin: 0;
+    padding: 0;
+    overflow: hidden;
+}
+.U_Control_Lnav_left a
+{
+    text-decoration: none;
+    font-family: cursive;
+    color: #635e5e;
+    padding: 1em 6em;
+    display: inline-table;
+    font-size: 3em;
+}
+.U_Control_Lnav_body
+{
+    width: 100%;
+    height: 100%;
+    /*background: url("img/bg.jpg");
+    background-size: 200% 100%;
+    background-repeat: no-repeat;
+    background-position: -152px;*/
+    background-color:#3a99ea;
+    position: relative;
+}
+#U_Control_Lnav_tab
+{
+    z-index: 999;  
+}
+
+.U_Control_Lnav_content
+{
+    position: absolute;
+    bottom: 0;
+    width: 100%;
+}
+.U_Control_Lnav_left
+{
+    width: 100%;
+    height: 9em;
+    background-color:White;
+}
+.U_Control_Lnav_left a
+{
+    position: relative;
+}
+.U_Control_Lnav_left a:before, .U_Control_Lnav_left a:after
+{
+    content: "]";
+    position: absolute;
+    right: 0;
+    transition: transform 0.3s,opacity 0.3s;
+    opacity: 0;
+}
+.U_Control_Lnav_left a:after
+{
+    right: -0.5em;
+    transform: translateX(6em);
+}
+.U_Control_Lnav_left a:before
+{
+    transform: translateX(-2em);
+}
+.U_Control_Lnav_left a:hover::after, .U_Control_Lnav_left a:hover::before
+{
+    transform: translateX(0px);
+    opacity: 1;
+}
+.U_Control_Lnav_touch
+{
+    width: 100%;
+    height: 100%;
+    background:#e4dfdf;
+}
+.U_Control_Lnav_on
+{
+    transition: left 0.3s;
+}
+#U_Control_Lnav_shade
+{
+    background-color:#222;
+    /*opacity:0.5;*/
+    width: 100%;
+    height: 100%;
+    position: absolute;
+    top: 0px; 
+    z-index:998;
+}
+#U_Control_Lnav_Test
+{
+    width: 500px;
+    height: 200px;
+    border: 1px solid #fff;
+    background-color: #3a99ea;
+    position: absolute;
+    top: 300px;
+    left: 400px;
+    color: white;
+    font-size: 60px;
+    text-align:center;
+    line-height:200px;     
+}

+ 13 - 0
controls/pc/Lnav/Lnav.html

@@ -0,0 +1,13 @@
+<!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>
+    <title></title>
+    <script type="text/javascript" src="http://www.1473.cn/uform.js"></script>
+    <script src="Lnav.js" type="text/javascript"></script>
+    <link  href="Lnav.css" type="text/css" rel="Stylesheet" />
+</head>
+<body>   
+</body>
+</html>
+<script type="text/javascript">
+</script>

+ 74 - 0
controls/pc/Lnav/Lnav.js

@@ -0,0 +1,74 @@
+Namespace.register("U.Control.Lnav");
+//滑动栏命名空间 曾昊杰 郑炳圳
+/*window.onload = function () {
+    U.Control.Lnav.A();//生成元素
+}*/
+
+U.Control.Lnav.A = function () {
+    a = U.Control.Lnav.CreForm();   //获取生成的元素
+    $("#U_Control_Lnav_tab")[0].style.left = -$("#U_Control_Lnav_tab")[0].offsetWidth + "px"; //区域滑动
+    $(".U_Control_Lnav_touch")[0].addEventListener('touchstart', function (e) {  //添加拖动开始事件
+        U.UF.EV.stopBubble();
+        nStartY = e.targetTouches[0].pageY; //获取this的y坐标
+        nStartX = e.targetTouches[0].pageX; //获取this的x坐标
+        U.Control.Lnav.pageX = nStartX; //把x坐标传递给全局变量
+        U.Control.Lnav.left = $("#U_Control_Lnav_tab")[0].offsetLeft; //把元素当前的left传递给全局变量
+        $("#U_Control_Lnav_tab")[0].className = "U_Control_Lnav_body"; //取消类名
+        //console.log("开始:"+nStartY+" "+nStartX)
+    });
+    $(".U_Control_Lnav_touch")[0].addEventListener('touchmove', function (e) {
+        U.UF.EV.stopBubble();
+        $("#U_Control_Lnav_shade")[0].style.display = "block";
+        var count;
+        if (-$("#U_Control_Lnav_tab")[0].offsetLeft > $("#U_Control_Lnav_tab")[0].offsetWidth / 4) {
+            count = -$("#U_Control_Lnav_tab")[0].offsetLeft / 1000;
+            $("#U_Control_Lnav_shade")[0].style.opacity = 1 - count;
+        }
+        var a = -(U.Control.Lnav.pageX - e.targetTouches[0].pageX);
+        //$("#U_Control_Lnav_tab")[0].offsetLeft==0
+        //||$("#U_Control_Lnav_tab")[0].offsetWidth==$("#U_Control_Lnav_tab")[0].offsetLeft)
+
+        if (U.Control.Lnav.left + a >= 0) { $("#U_Control_Lnav_tab")[0].style.left = "0px"; return; } //达到一定程度不执行程序
+        if (U.Control.Lnav.left + a <= -($("#U_Control_Lnav_tab")[0].offsetWidth)) {     //达到一定程度不执行程序
+            $("#U_Control_Lnav_tab")[0].style.left = -$("#U_Control_Lnav_tab")[0].offsetWidth + "px";
+            return;
+        }
+        $("#U_Control_Lnav_tab")[0].style.left = U.Control.Lnav.left + a + "px"; //调整元素坐标
+    });
+    $(".U_Control_Lnav_touch")[0].addEventListener('touchend', function (e) { //添加拖动取消事件
+        U.UF.EV.stopBubble();
+
+        //console.log(count);
+
+        $("#U_Control_Lnav_tab")[0].className = "U_Control_Lnav_body U_Control_Lnav_on";
+        if (-$("#U_Control_Lnav_tab")[0].offsetLeft < $("#U_Control_Lnav_tab")[0].offsetWidth / 2) {
+            $("#U_Control_Lnav_tab")[0].style.left = -$("#U_Control_Lnav_tab")[0].offsetWidth / 4 + "px";
+            // $("#U_Control_Lnav_shade")[0].style.display = "block";
+        }
+        else {
+            $("#U_Control_Lnav_tab")[0].style.left = -$("#U_Control_Lnav_tab")[0].offsetWidth + "px"; //判断元素是否移动回起点
+            $("#U_Control_Lnav_shade")[0].style.display = "none";
+        }
+    });
+
+    return a; //返回元素
+}
+
+U.Control.Lnav.CreForm = function () { //生成元素
+    var U_Control_Lnav_touch = $$("div", { "class": "U_Control_Lnav_touch" }, document.body);
+    var U_Control_Lnav_tab = $$("div", { "id": "U_Control_Lnav_tab", "class": "U_Control_Lnav_body U_Control_Lnav_on" }, U_Control_Lnav_touch);
+    var U_Control_Lnav_content = $$("div", { "class": "U_Control_Lnav_content" }, U_Control_Lnav_tab);
+    var U_Control_Lnav_left_I = $$("div", { "class": " U_Control_Lnav_left" }, U_Control_Lnav_content);
+    var U_Control_Lnav_left_I_A = $$("a", { "href": "", "innerHTML": "DESULTORY" }, U_Control_Lnav_left_I);
+    var U_Control_Lnav_left_II = $$("div", { "class": " U_Control_Lnav_left" }, U_Control_Lnav_content);
+    var U_Control_Lnav_left_II_A = $$("a", { "href": "", "innerHTML": "SUMPTUOUS" }, U_Control_Lnav_left_II);
+    var U_Control_Lnav_left_III = $$("div", { "class": " U_Control_Lnav_left" }, U_Control_Lnav_content);
+    var U_Control_Lnav_left_III_A = $$("a", { "href": "", "innerHTML": "SCINTILLA" }, U_Control_Lnav_left_III);
+    var U_Control_Lnav_left_IV = $$("div", { "class": " U_Control_Lnav_left" }, U_Control_Lnav_content);
+    var U_Control_Lnav_left_IV_A = $$("a", { "href": "", "innerHTML": "PROPINQUITY" }, U_Control_Lnav_left_IV);
+    var U_Control_Lnav_left_V = $$("div", { "class": " U_Control_Lnav_left" }, U_Control_Lnav_content);
+    var U_Control_Lnav_left_V_A = $$("a", { "href": "", "innerHTML": "HARBINGER" }, U_Control_Lnav_left_V);
+    var U_Control_Lnav_shade = $$("div", { "id": "U_Control_Lnav_shade", "style": { "display": "none"} }, U_Control_Lnav_touch);
+    var U_Control_Lnav_Test = $$("div", { "id": "U_Control_Lnav_Test", "style": { }, "innerHTML": "请向右滑动" }, U_Control_Lnav_touch)
+    return U_Control_Lnav_touch;
+}

二進制
controls/pc/Lnav/img/bg.jpg


二進制
controls/pc/Lnav/左侧滑动导航栏.png


二進制
controls/pc/Lnav/左侧滑动导航栏手机端.png


+ 30 - 0
controls/pc/Loading/loading.css

@@ -0,0 +1,30 @@
+html,body{ 
+    width:100%;
+    height:100%;
+    margin:0;
+    padding:0;
+  }
+  .loading
+  {
+      width:50%;
+      height:20px;
+      background-color:white;
+      border:4px solid #21b0fc;
+      border-radius:20px;
+      z-index:2;
+      position: relative;
+  }
+  .bar
+  {
+    width:1%;
+    height:80%;
+    position:relative;
+    left:2px;
+    top:2px;
+    text-align:right;
+    background-color:#21b0fc;      
+    border-radius:10px;
+    color:White;
+    
+  }
+

+ 21 - 0
controls/pc/Loading/loading.htm

@@ -0,0 +1,21 @@
+<!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>
+    <title></title>
+    <link href="loading.css" rel="stylesheet" type="text/css" />
+    <script type="text/javascript" src="http://www.1473.cn/uform.js"></script>
+    <script src="loading.js" type="text/javascript"></script>
+    <script type="text/javascript">
+
+        window.onload = function () {
+            U.Control.Bar.Box();
+        }
+  
+    </script>
+</head>
+<body>
+    <!-- <div id="aaa">
+        <img id="bbb"src="http://bizhi.zhuoku.com/wall/jie/20061207/huoyin/048.jpg"/>
+    </div> -->
+</body>
+</html>

二進制
controls/pc/Loading/loading.jpg


+ 44 - 0
controls/pc/Loading/loading.js

@@ -0,0 +1,44 @@
+/*进度条*/
+//杨俊源
+//命名空间
+Namespace.register("U.Control.Bar");
+//调用的主函数  返回Content
+//U.Control.Bar.loadImg(src,width,height)
+U.Control.Bar.Box = function () {
+    return document.body.appendChild(U.Control.Bar.loadImg("http://fs.1473.cn/3e5b78e0-6ded-4386-b643-dd27d15fc007.jpg", 500, 600)); //传参(src,width,height)
+}
+//加载图片
+U.Control.Bar.loadImg = function (imgUrl, width, height) {
+    //var content = $("#"+content)[0];
+    //创建一个div
+    var content = $$("div", { "id": "Image", "style": { "cssText": "width:" + width + "px;height:" + height + "px"} });
+    // content.style.position = "relative";
+    content.style.position = "absolute";
+    //div的底层
+    var bg = $$("img", { "style": { "cssText": "width:100%;height:100%;opacity:1;position:absolute;"} }, content);
+    //div遮罩层
+    var divs = $$("div", { "style": { "cssText": "width:100%;height:100%;background:#fff;opacity: 1;transition: 0.8s all;position: relative;"} }, content);
+    //进度条。。。
+    var progress = $$("div", { "style": { "cssText": "width: 100%;height: 28px;border-radius: 16px;background: rgb(33, 176, 252);position: absolute;display: inline-block;top: 50%;margin-top: -14px;"} }, divs);
+    var div = $$("div", { "style": { "cssText": "width: 99%;height: calc(100% - 10px);margin: auto;border-radius: 16px;background: rgb(255, 255, 255);margin-top: 4px;border: 1px solid #fff;"} }, progress);
+    var bar = $$("div", { "style": { "cssText": "width: 0%;height: 100%;background: rgb(33, 176, 252);border-radius: 16px;transition: 4s all;"} }, div);
+    //var barA = $$("div",{"style":{"cssText":"float:right"}},bar);
+    //var barF = $$("a",{"innerHTML":"1"},barA);
+    //var barFB = $$("a",{"innerHTML":"%"},barA);
+    //进度条上下居中
+    //progress.style.top = (parseInt(content.style.width)-progress.offsetHeight)/2+"px";
+    setTimeout(function () { bar.style.width = "98%"; }, 1);
+    //$(bar).animate({"width":"98%"},1000);
+    //bar.style.width="98%";
+    var img = new Image();
+    img.src = imgUrl;
+    //图片加载完成
+    img.onload = function () {
+        $(bar).animate({ "width": "100%" }, 100);
+        setTimeout(function () { divs.style.cssText += "opacity:0"; U.Alert("加载完成"); }, 2000);
+        bg.src = img.src;     
+    }
+
+    return content;
+}
+/*U.Control.Bar End*/

二進制
controls/pc/Loading/test.png


二進制
controls/pc/Login/text2/img/f5.png


二進制
controls/pc/Login/text2/img/qq-icon-hover.png


二進制
controls/pc/Login/text2/img/qq-icon.png


二進制
controls/pc/Login/text2/img/suo.png


二進制
controls/pc/Login/text2/img/user.png


二進制
controls/pc/Login/text2/img/weibo-icon-hover.png


二進制
controls/pc/Login/text2/img/weibo-icon.png


+ 51 - 0
controls/pc/Login/text2/login.css

@@ -0,0 +1,51 @@
+* { margin: 0px; padding: 0px; font-family: Microsoft YaHei; }
+.U_L_warp { position:absolute;z-index:9999999; }
+.U_L_w_logindiv { width: 320px; height: 410px; background: white; border: 1px solid #d5d5d5; border-radius: 3px;display:block;}
+.U_L_w_l_titlediv { width: 100%; height: 60px; line-height: 60px; border-bottom: 1px solid #d5d5d5; background: #f3f3f3; border-radius: 3px 3px 0px 0px; }
+.U_L_w_l_title { text-indent: 118px; font-size: 22px; color: #242424; font-weight: bold; float: left; }
+.U_L_w_l_register { text-indent: 30px; font-size: 14px; color: #b7b7b7; float: left; }
+
+.U_L_w_l_np { width: 282px; height: 120px; clear: both; margin:25px auto; }
+.U_L_w_l_name, .U_L_w_l_password { width: 280px; height: 50px; border: 1px solid #d5d5d5; border-radius: 4px; }
+.U_L_w_l_n_img, .U_L_w_l_p_img { width: 50px; height: 50px; border-radius: 4px 0px 0px 4px; background: url("img/user.png") no-repeat center #f9f9f9; float: left; border-right: 1px solid #d5d5d5; }
+.U_L_w_l_n_input { width: 229px; height: 50px; border: 0px; outline: none; float: left; color: Black; text-indent: 15px; border-radius: 0px 4px 4px 0px; }
+.U_L_w_l_password { margin-top: 16px; }
+.U_L_w_l_p_img { background: url("img/suo.png") no-repeat center #f9f9f9; border-right: 1px solid #d5d5d5; }
+.U_L_w_l_mima { width: 280px; height: 18px; font-size: 14px; margin: 14px auto; }
+.U_L_w_l_m_left { width: 81px; float: left; }
+.U_L_w_l_m_l_input { float: left; margin: 5px 5px 0px 0px; }
+.U_L_w_l_m_right { float: right; color: #b7b7b7; }
+.U_L_w_l_loginbtn { width: 280px; height: 50px; background: #179aff; color: #fff; font-size: 16px; text-align: center; line-height: 50px; margin: auto; border-radius: 4px; }
+.U_L_w_l_other { width: 106px; height: 60px; margin: 30px auto 0px; }
+.U_L_w_l_o_text { line-height: 13px; color: #b7b7b7; font-size: 13px; margin-bottom: 14px; }
+.U_L_w_l_o_img { width: 72px; height: 28px; margin: auto; }
+.U_L_w_l_o_i_weibo { width: 28px; height: 28px; float: left; background: url("img/weibo-icon.png") no-repeat center; }
+.U_L_w_l_o_i_weibo:hover { background: url("img/weibo-icon-hover.png") no-repeat center; }
+.U_L_w_l_o_i_qq { width: 28px; height: 28px; float: right; background: url("img/qq-icon.png") no-repeat center; }
+.U_L_w_l_o_i_qq:hover { background: url("img/qq-icon-hover.png") no-repeat center; }
+
+
+
+
+
+.U_L_w_registerdiv { width: 320px; height: 410px; background: #fff; border-radius: 6px;box-shadow: 2px 2px 2px #fff; border:1px solid #D8D8D8; display:none;}
+.U_L_w_l_box { width:320px; height:60px; border-radius: 6px 6px 0px 0px; line-height:60px; background-color:#f3f3f3;}
+.U_L_w_l_title_A { line-height: 22px; font-size: 22px; color: #242424; font-weight: bold; margin: 18px 30px 45px 116px; float: left; }
+.U_L_w_l_login { line-height: 14px; font-size: 14px; color: #b7b7b7; margin: 23px 0px 0px 0px; float: left; }
+.U_L_w_l_np { width: 280px; height: 120px; clear: both; margin:25px auto; }
+.U_L_w_l_name { width: 280px; height: 50px; border: 1px solid #d5d5d5; border-radius: 4px; }
+.U_L_w_l_n_img { width: 50px; height: 50px; border-radius: 4px 0px 0px 4px; background: url("img/user.png") no-repeat center #f9f9f9; float: left; border-right: 1px solid #d5d5d5; }
+.U_L_w_l_n_input { width: 229px; height: 50px; border: 0px; outline: none; float: left; color: Black; text-indent: 15px; font-size: 14px; }
+.U_L_w_l_password { margin-top: 16px; }
+.U_L_w_l_p_img { background: url("img/suo.png") no-repeat center #f9f9f9; border-right: 1px solid #d5d5d5; }
+.U_L_w_l_mima { width: 280px; height: 18px; font-size: 14px; margin: 14px auto; }
+.U_L_w_l_m_left { width: 81px; float: left; }
+.U_L_w_l_m_l_input { float: left; margin: 3px 5px 0px 0px; }
+.U_L_w_l_m_right { float: right; color: #b7b7b7; }
+.U_L_w_l_registerbtn { width: 280px; height: 50px; background: #179aff; color: #fff; font-size: 16px; text-align: center; line-height: 50px; margin: auto; border-radius: 4px; margin-top:82px;}
+.U_L_w_l_other { width: 106px; height: 60px; margin: 30px auto 0px; }
+.U_L_w_l_o_text { line-height: 13px; color: #b7b7b7; font-size: 13px; margin-bottom: 14px; }
+.code{width:280px;height:40px;float:left;margin-left: 20px; margin-top:16px; display: none;}
+.Verification{width:148px; height:40px; outline: none; float: left; color: Black; border: 1px solid #d5d5d5; border-radius:4px;text-align:center;}
+.codepct{width:116px; height:40px; background-color: #fff; border: 1px solid #d5d5d5; float: right;}
+.Refresh{width:18px; height:18px; float: right; margin-top: 12px; background-image: url("img/f5.png");cursor:pointer;}

+ 21 - 0
controls/pc/Login/text2/login.htm

@@ -0,0 +1,21 @@
+<! DOCTYPE html />
+<html>
+<head>
+    <meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
+    <title>登录</title>
+    <!-- 引入css样式表文件 -->
+    <link rel="stylesheet" type="text/css" href="login.css" />
+    <!-- 引入1473 -->
+    <script type="text/javascript" src="http://www.1473.cn/uform.js"></script>
+    <!-- 引入js文件 -->
+    <script type="text/javascript" src="login.js"></script>
+    <script type="text/javascript">
+        //
+        window.onload = function () {
+            $("body").append(U.Control.login.init());
+        }
+    </script>
+</head>
+<body>
+</body>
+</html>

+ 104 - 0
controls/pc/Login/text2/login.js

@@ -0,0 +1,104 @@
+Namespace.register("U.Control.login");  //登录页面的命名空间
+
+//登录页面
+U.Control.login.init = function () {
+    //外框
+    var U_L_warp = $$("div", { "className": "U_L_warp" });
+    var U_L_w_logindiv = $$("div", { "className": "U_L_w_logindiv" }, U_L_warp);
+
+    //登录云端
+    var U_L_w_l_titlediv = $$("div", { "className": "U_L_w_l_titlediv" }, U_L_w_logindiv);
+    $$("div", { "className": "U_L_w_l_title", "innerHTML": "登录云端" }, U_L_w_l_titlediv);
+    //注册账号
+    var U_L_w_l_register = $$("div", { "className": "U_L_w_l_register", "innerHTML": "注册账号>" }, U_L_w_l_titlediv);
+  
+    //账号
+    var U_L_w_l_np = $$("div", { "className": "U_L_w_l_np" }, U_L_w_logindiv);
+    var U_L_w_l_name = $$("div", { "className": "U_L_w_l_name" }, U_L_w_l_np);
+    $$("div", { "className": "U_L_w_l_n_img" }, U_L_w_l_name);
+    $$("input", { "className": "U_L_w_l_n_input", "type": "text", "placeholder": "账号/手机号" }, U_L_w_l_name);
+
+    //密码
+    var U_L_w_l_password = $$("div", { "className": "U_L_w_l_password" }, U_L_w_l_np);
+    $$("div", { "className": "U_L_w_l_p_img" }, U_L_w_l_password);
+    $$("input", { "className": "U_L_w_l_n_input", "type": "password", "placeholder": "输入您的密码" }, U_L_w_l_password);
+
+    //记住密码
+    var U_L_w_l_mima = $$("div", { "className": "U_L_w_l_mima" }, U_L_w_logindiv);
+    var U_L_w_l_m_left = $$("div", { "className": "U_L_w_l_m_left" }, U_L_w_l_mima);
+    $$("input", { "className": "U_L_w_l_m_l_input", "type": "checkbox" }, U_L_w_l_m_left);
+    $$("span", { "innerHTML": "记住密码" }, U_L_w_l_m_left);
+    $$("div", { "className": "U_L_w_l_m_right", "innerHTML": "忘记密码?" }, U_L_w_l_mima);
+
+    //登录按钮
+    var U_L_w_l_loginbtn = $$("div", { "className": "U_L_w_l_loginbtn", "innerHTML": "立即登录" }, U_L_w_logindiv);
+    U_L_w_l_loginbtn.onclick = function () { aa(this); }
+
+    //其他方式登陆
+    var U_L_w_l_other = $$("div", { "className": "U_L_w_l_other" }, U_L_w_logindiv);
+    $$("div", { "className": "U_L_w_l_o_text", "innerHTML": "使用合作平台登录" }, U_L_w_l_other);
+    //QQ或微博登录
+    var U_L_w_l_o_img = $$("div", { "className": "U_L_w_l_o_img" }, U_L_w_l_other);
+    $$("div", { "className": "U_L_w_l_o_i_weibo" }, U_L_w_l_o_img);
+    $$("div", { "className": "U_L_w_l_o_i_qq" }, U_L_w_l_o_img);
+
+    /*------------注册--------*/
+    //外框
+    var U_L_w_registerdiv = $$("div", { "className": "U_L_w_registerdiv"}, U_L_warp);
+
+    //标题框
+    var U_L_w_l_box = $$("div", { "className": "U_L_w_l_box" }, U_L_w_registerdiv);
+    var U_L_w_l_title = $$("div", { "className": "U_L_w_l_title_A", "innerHTML": "注册云端" }, U_L_w_l_box);
+    var U_L_w_l_login = $$("div", { "className": "U_L_w_l_login", "innerHTML": "返回登录" }, U_L_w_l_box);
+    U_L_w_l_register.onclick = function () {
+        U.Control.login.reg(this, U_L_w_registerdiv);
+    }
+    U_L_w_l_login.onclick = function () {
+        U.Control.login.log(this, U_L_w_logindiv);
+    }
+    //注册框
+    var U_L_w_l_np = $$("div", { "className": "U_L_w_l_np" }, U_L_w_registerdiv);
+    var U_L_w_l_name = $$("div", { "className": "U_L_w_l_name" }, U_L_w_l_np);
+    var U_L_w_l_n_img = $$("div", { "className": "U_L_w_l_n_img" }, U_L_w_l_name);
+    var U_L_w_l_n_input = $$("input", { "className": "U_L_w_l_n_input", "placeholder": "账号/手机号" }, U_L_w_l_name);
+
+    //密码框
+    var U_L_w_l_password = $$("div", { "className": "U_L_w_l_password U_L_w_l_name" }, U_L_w_l_np);
+    var U_L_w_l_n_imgs = $$("div", { "className": "U_L_w_l_p_img U_L_w_l_n_img" }, U_L_w_l_password);
+    var U_L_w_l_n_inputs = $$("input", { "className": "U_L_w_l_n_input", "placeholder": "请输入您的密码", "type": "password" }, U_L_w_l_password);
+
+    //确认密码
+    var U_L_w_l_Confirm_password = $$("div", { "className": "U_L_w_l_password U_L_w_l_name" }, U_L_w_l_np);
+    var U_L_w_l_Confirm_n_imgs = $$("div", { "className": "U_L_w_l_p_img U_L_w_l_n_img" }, U_L_w_l_Confirm_password);
+    var U_L_w_l_Confirm_n_inputs = $$("input", { "className": "U_L_w_l_n_input", "placeholder": "请确认您的密码", "type": "password" }, U_L_w_l_Confirm_password);
+
+    //验证码框
+    var code = $$("div", { "className": "code" }, U_L_w_registerdiv);
+    var Verification = $$("input", { "className": "Verification", "placeholder": "输入验证码" }, code);
+    var codepct = $$("div", { "className": "codepct" }, code);
+    var Refresh = $$("div", { "className": "Refresh" }, codepct);
+
+    //立即注册
+    var U_L_w_l_registerbtn = $$("div", { "className": "U_L_w_l_registerbtn", "innerHTML": "立即注册" }, U_L_w_registerdiv);
+
+    return U_L_warp;
+}
+
+
+function aa() {
+    return false;
+}
+
+U.Control.login.reg = function (a,b) {   //去注册
+    if (document.defaultView.getComputedStyle(a, null).display=="block") {
+        a.parentNode.parentNode.style.display = "none"
+        b.style.display = "block";
+    }
+}
+
+U.Control.login.log = function (a,b) {  //去登录
+    if (document.defaultView.getComputedStyle(a, null).display == "block") {
+        a.parentNode.parentNode.style.display = "none"
+        b.style.display = "block";
+    }
+}

二進制
controls/pc/Login/设计图/登录-改版.png


二進制
controls/pc/Login/设计图/登录注册控件-最新.jpg


File diff suppressed because it is too large
+ 11 - 0
controls/pc/Map/Map.css


+ 122 - 0
controls/pc/Map/Map.js

@@ -0,0 +1,122 @@
+Namespace.register("U.Map"); /* 12软件林志雄*/
+
+
+/*
+需要的变量 :城市名 详细地址  地图级别 地图的宽高  父亲节点
+*/
+U.Map.defaults = { //默认初始化
+    "city": "深圳市", "width": "1000", "height": "500", "em": "body", "add": "深圳市罗湖区人民北路金溪大厦"
+}
+U.Map.defaults.init = function (obj) { //传进来的json值进行覆盖
+    for (var i in obj) { U.Map.defaults[i] = obj[i]; }
+    return U.Map.defaults;
+}
+
+U.Map.Qs = function (info, _L, _T) {//起始   @parm add 详细地址     @parm city 填城市名   @parm width 元素的宽   @parm height 元素的高  @parm em 父级   
+    info = U.Map.defaults.init(info);
+    //U.Map.ceateEle(info); //创建元素
+    var Total = info.em;
+    var mapTotal = $$("div", { "id": "U_M_Total", style: { "position": "relative", "width": info.width + "px"} }, Total); //地图创建
+    var result = $$("div", { "id": "map-result", style: { "margin-top": 10 + "px", "position": "absolute", "top": 10 + "px", "right": 10 + "px", "z-index": "99"} }, mapTotal); //搜索框创建
+    $$("input", { "id": "suggestId", "type": "text", style: { "width": 260 + "px", "padding-top": 9 + "px", "padding-bottom": 9 + "px", "padding-left": 10 + "px", "font-size": 14 + "px", "color": "#333" }, "placeholder": "请输入地址" }, result);
+    $$("div", { "id": "searchBtn", style: { "width": 43 + "px", "height": "38" + "px", "float": "right", "background": "url('http://d.1473.cn/controls/pc/Map/searchicon.png')", "cursor": "pointer"} }, result);
+    $$("div", { "id": "l-map", style: { "height": info.height + "px", "width": info.width + "px"} }, mapTotal); //地图创建
+    //var ss =  U.Map.defaults();
+    //var s = U.Map.defaults.apply(U.Map.defaults, ([""]));
+    cityinfo = info.add;
+    city = "深圳市";
+    var map = new BMap.Map("l-map");
+    var myGeo = new BMap.Geocoder();
+    var top_left_control = new BMap.ScaleControl({ anchor: BMAP_ANCHOR_TOP_LEFT }); // 左上角,添加比例尺
+    var top_left_navigation = new BMap.NavigationControl();  //左上角,添加默认缩放平移控件
+    map.addControl(top_left_control);
+    map.addControl(top_left_navigation);
+    myGeo.getPoint(cityinfo, function (point) {    // 将地址解析结果显示在地图上,并调整地图视野
+        if (point) {
+            map.centerAndZoom(point, 20); // 初始化地图,设置城市和地图级别。
+            map.addOverlay(new BMap.Marker(point));
+            info.em[0].contentWindow.document.body.appendChild(mapTotal);
+            $(mapTotal).addClass("UCD_IF_CT"); U.CD.L.AppendIF(mapTotal, info.em, _L, _T);
+            //          document.body.appendChild($("#tangram-suggestion--TANGRAM__1x-main")[0])
+
+            sss();
+        } else {
+            alert("您选择地址没有解析到结果!");
+        }
+    }, city);
+    // map.centerAndZoom("深圳", 20);  
+    function sss() {
+        var top_left_control = new BMap.ScaleControl({ anchor: BMAP_ANCHOR_TOP_LEFT }); // 左上角,添加比例尺
+        var top_left_navigation = new BMap.NavigationControl();  //左上角,添加默认缩放平移控件
+        map.addControl(top_left_control);
+        map.addControl(top_left_navigation);
+        var ac = new BMap.Autocomplete(    //建立一个自动完成的对象
+		{"input": "suggestId"
+		, "location": map
+});
+        ac.addEventListener("onhighlight", function (e) {  //鼠标放在下拉列表上的事件
+            var str = "";
+            var _value = e.fromitem.value;
+            var value = "";
+            if (e.fromitem.index > -1) {
+                value = _value.province + _value.city + _value.district + _value.street + _value.business;
+            }
+            str = "FromItem<br />index = " + e.fromitem.index + "<br />value = " + value;
+
+            value = "";
+            if (e.toitem.index > -1) {
+                _value = e.toitem.value;
+                value = _value.province + _value.city + _value.district + _value.street + _value.business;
+            }
+            str += "<br />ToItem<br />index = " + e.toitem.index + "<br />value = " + value;
+            $("#searchResultPanel").innerHTML = str;
+        });
+
+        var myValue;
+        ac.addEventListener("onconfirm", function (e) {    //鼠标点击下拉列表后的事件
+            var _value = e.item.value;
+            myValue = _value.province + _value.city + _value.district + _value.street + _value.business;
+            $("#searchResultPanel").innerHTML = "onconfirm<br />index = " + e.item.index + "<br />myValue = " + myValue;
+            U.Map.setPlace();
+        });
+
+
+
+
+        U.Map.setPlace = function () {//搜索函数
+            map.clearOverlays();    //清除地图上所有覆盖物
+            U.Map.fun = function () {
+                var pp = local.getResults().getPoi(0).point;    //获取第一个智能搜索的结果
+                map.centerAndZoom(pp, 20);
+                map.addOverlay(new BMap.Marker(pp));    //添加标注
+            }
+            var local = new BMap.LocalSearch(map, { //智能搜索
+                onSearchComplete: U.Map.fun
+            });
+            local.search(myValue);
+        }
+    }
+}
+
+
+
+
+
+
+
+
+U.Map.ceateEle = function (info) { //创建地图元素   @param 
+    //var Total = $("#" + info.em)[0];
+    var Total = info.em;
+    var mapTotal = $$("div", { "id": "U_M_Total", style: { "position": "relative", "width": info.width + "px"} }, Total); //地图创建
+    var result = $$("div", { "id": "map-result", style: { "margin-top": 10 + "px", "position": "absolute", "top": 10 + "px", "right": 10 + "px", "z-index": "99"} }, mapTotal); //搜索框创建
+    $$("input", { "id": "suggestId", "type": "text", style: { "width": 260 + "px", "padding-top": 9 + "px", "padding-bottom": 9 + "px", "padding-left": 10 + "px", "font-size": 14 + "px", "color": "#333" }, "placeholder": "请输入地址" }, result);
+    $$("div", { "id": "searchBtn", style: { "width": 43 + "px", "height": "38" + "px", "float": "right", "background": "url('searchicon.png')", "cursor": "pointer"} }, result);
+    $$("div", { "id": "l-map", style: { "height": info.height + "px", "width": info.width + "px"} }, Total); //地图创建
+
+}
+
+
+U.Map.drapMap = function (obj) {
+    return U.Map.Qs(obj);
+}

+ 26 - 0
controls/pc/Map/MapIndex.htm

@@ -0,0 +1,26 @@
+<!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>
+    <title></title>
+    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
+    <meta name="viewport" content="initial-scale=1.0, user-scalable=no" />
+    <link href="Map.css" rel="stylesheet" type="text/css" />
+    <script type="text/javascript" src="http://api.map.baidu.com/api?v=2.0&ak=twH78ipof12UvP8PQNFUaB1s"></script>
+    <script type="text/javascript" src="http://www.1473.cn/uform.js"></script>
+    <script src="Map.js" type="text/javascript"></script>
+</head>
+<body>
+    <div id='SS'>
+    </div>
+</body>
+<script>
+
+    //U.Map.drapMap({ "width": "1000", "height": "500", "em": "SS", "add": "深圳市罗湖区人民北路金溪大厦" })1、;
+    U.Map.Qs({ //默认初始化
+        "city": "深圳市", "width": "1000", "height": "500", "em": $("body"), "add": "深圳市罗湖区人民北路金溪大厦"
+    })
+
+
+</script>
+
+</html>

二進制
controls/pc/Map/searchicon.png


二進制
controls/pc/Map/地图.psd


二進制
controls/pc/Map/地图设计图.png


+ 13 - 0
controls/pc/Note/Note.css

@@ -0,0 +1,13 @@
+/*地图控件css   U_M_*/
+
+
+
+body, html { width: 100%; height: 100%; margin: 0; font-family: "微软雅黑"; }
+#odivC { width: 100%; height: 500px; }
+#r-result { width: 100%; margin-top: 5px; }
+p { margin: 5px; font-size: 14px; }
+#l-map{height:300px;width:100%;}
+
+
+.left1{ background-image:url("add.png");}
+.right1{ background-image:url("dele.png");}

+ 17 - 0
controls/pc/Note/Note.htm

@@ -0,0 +1,17 @@
+<!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>
+    <title>Note</title>
+    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
+    <meta name="viewport" content="initial-scale=1.0, user-scalable=no" />
+    <link href="Note.css" rel="stylesheet" type="text/css" />
+    <script type="text/javascript" src="http://www.1473.cn/uform.js"></script>
+    <script src="Note.js" type="text/javascript"></script>
+</head>
+<body>
+ 
+</body>
+</html>
+<script type="text/javascript">
+    U.Note.Qs();
+</script>

+ 43 - 0
controls/pc/Note/Note.js

@@ -0,0 +1,43 @@
+Namespace.register("U.Note");    //蔡胜锐  张显
+
+//起始
+U.Note.Qs = function () {               //执行函数
+
+    U.Note.ceateEle();    
+}
+
+U.Note.ceateEle = function () {         //创建便签元素   @param
+
+    //    var Note = $("#U_N_Note")[0];       //创建便签窗体
+    //    $("#U_N_Note")[0].style.cssText = "position: relative;width:" + 1000 + "px";       //开始创建便签内元素
+    var odivC = $$("div", { "id": "odivC", style: { "top": "100px", "position": "relative", "left": "170px", "z-index": "97"} }); //top
+    var zdiv = $$("div", { style: { "width": 250 + "px", "height": 250 + "px", "margin-left": 20 + "px", "margin-top": 20 + "px", "font-size": 14 + "px", "background-color": "#fcfbe2", "color": "#333", "float": "left", "z-index": "98" }, "onclick": "" }, odivC);
+    var xdiv = $$("div", { style: { "width": 250 + "px", "height": 50 + "px", "margin-left": 0 + "px", "margin-top": 0 + "px", "font-size": 14 + "px", "background-color": "#faf9d5", "color": "#333", "float": "left", "z-index": "98" }, "onclick": "" }, zdiv);
+    var add = $$("div", { "className": "left1", style: { "width": 50 + "px", "height": 50 + "px", "margin-top": 0 + "px", "margin-left": 0 + "px", "float": "left", "z-index": "99" }, "onclick": "U.Note.add()" }, xdiv);
+    $$("a", { "contenteditable": "true", style: { "width": 148 + "px", "height": 30 + "px", "margin-top": 10 + "px", "text-align": "center", "line-height": "30px", "font-size": 14 + "px", "color": "#323333", "float": "left", "overflow": "hidden", "white-space": " nowrap" }, "innerHTML": "标题XXX", "z-index": "99" }, xdiv);
+    var dle = $$("div", { "className": "right1", style: { "width": 50 + "px", "height": 50 + "px", "margin-top": 0 + "px", "margin-right": 0 + "px", "float": "right", "z-index": "99" }, "onclick": "U.Note.dele(this)" }, xdiv);
+    $$("p", { "contenteditable": "true", style: { "width": 230 + "px", "height": 190 + "px", "margin-left": 10 + "px", "margin-bottom": 10 + "px", "padding-top": 0 + "px", "padding-bottom": 0 + "px", "padding-left": 0 + "px", "font-size": 14 + "px", "color": "#898a8b", "float": "left", "overflow-x": "auto", "overflow-y": "auto" }, "innerHTML": "请输入...", "z-index": "99" }, zdiv);
+    return odivC;
+
+
+}
+
+U.Note.add = function () {              //点击添加按钮函数 
+    var zdiv = $$("div", { style: { "width": 250 + "px", "height": 250 + "px", "margin-left": 20 + "px", "margin-top": 20 + "px", "font-size": 14 + "px", "background-color": "#fcfbe2", "color": "#333", "float": "left", "z-index": "98" }, "onclick": "" }, odivC);
+    var xdiv = $$("div", { style: { "width": 250 + "px", "height": 50 + "px", "margin-left": 0 + "px", "margin-top": 0 + "px", "font-size": 14 + "px", "background-color": "#faf9d5", "color": "#333", "float": "left", "z-index": "98" }, "onclick": "" }, zdiv);
+    var add = $$("div", { "className": "left1", style: { "width": 50 + "px", "height": 50 + "px", "margin-top": 0 + "px", "margin-left": 0 + "px", "float": "left", "z-index": "99" }, "onclick": "U.Note.add()" }, xdiv);
+    $$("a", { "contenteditable": "true", style: { "width": 148 + "px", "height": 30 + "px", "margin-top": 10 + "px", "text-align": "center", "line-height": "30px", "font-size": 14 + "px", "color": "#323333", "float": "left" }, "innerHTML": "标题XXX", "z-index": "99" }, xdiv);
+    var dle = $$("div", { "className": "right1", style: { "width": 50 + "px", "height": 50 + "px", "margin-top": 0 + "px", "margin-right": 0 + "px", "float": "right", "z-index": "99" }, "onclick": "U.Note.dele(this)" }, xdiv);
+    $$("p", { "contenteditable": "true", style: { "width": 230 + "px", "height": 190 + "px", "margin-left": 10 + "px", "margin-bottom": 10 + "px", "padding-top": 0 + "px", "padding-bottom": 0 + "px", "padding-left": 0 + "px", "font-size": 14 + "px", "color": "#898a8b", "float": "left", "overflow-x": "auto", "overflow-y": "auto" }, "innerHTML": "请输入...", "z-index": "99" }, zdiv);  
+}
+
+U.Note.dele = function (e) {            //点击删除按钮函数     e是删除按钮
+
+    var bb = $(e).Parent(2);
+    $(bb).fadeIn(500);
+}
+
+U.Note.Ddele = function () {            //点击删除按钮函数    删除所有的便签 
+    var cc = $("#odivC").Child();
+    $(cc).fadeIn(500);
+}

二進制
controls/pc/Note/add.png


二進制
controls/pc/Note/dele.png


+ 174 - 0
controls/pc/Pag/Pag.css

@@ -0,0 +1,174 @@
+ul, li
+{
+    margin: 0;
+    padding: 0px;
+    list-style: none;
+}
+.U_C_Pag_I_List
+{
+    border: 2px solid #f6f6f6;
+    border-radius: 5px;
+    line-height: 30px;
+    text-align: center;
+    float: left;
+}
+.U_C_Pag_I_List_UL
+{
+    float: left; /*max-width: 80%; border: 1px solid #f3f4f5;*/
+}
+
+/*.U_C_Pag_I_List_UL > li
+{
+    color: #56abe4;
+    float: left;
+    min-width: 20px;
+    padding: 0 5px;
+    height: 30px;
+    border-right: 2px solid #f5f5f5;
+}*/
+
+.U_C_Pag_I_List_UL_Li
+{
+    cursor: pointer;
+    color: #56abe4;
+    float: left;
+    min-width: 20px;
+    padding: 0 5px;
+    height: 30px;
+    border-right: 2px solid #f6f6f6;
+}
+.U_C_Pag_I_List_UL_DLi
+{
+    color: #aba59f;
+    float: left;
+    min-width: 20px;
+    padding: 0 5px;
+    height: 30px;
+    background-color: #f6f6f6;
+    border-right: 2px solid #f6f6f6;
+}
+.U_C_Pag_I_Next
+{
+    cursor: pointer;
+    width: 30px;
+    height: 30px;
+    float: left;
+    border-right: 2px solid #f5f5f5;
+    padding: 0 5px;
+    background: url("img/next.png") no-repeat 7px 11px;
+    background-size: 70%;
+}
+.U_C_Pag_I_Last
+{
+    cursor: pointer;
+    font-weight: bolder;
+    width: 30px;
+    height: 30px;
+    float: left;
+    color: #009cff;
+}
+
+.U_C_Pag_I_Find
+{
+    
+    border: 2px solid #f6f6f6;
+    float: left;
+    border-radius: 5px;
+    margin-left: 40px;
+}
+.U_C_Pag_I_Jump
+{
+    cursor: pointer;
+    width: 38px;
+    height: 30px;
+    float: left;
+    background: #e0e0e0 url("img/jump.png") no-repeat 5px 9px;
+    background-size: 75%;
+}
+.U_C_Pag_Jump_Inp
+{
+    float: left;
+    width: 35px;
+    height: 30px;
+    line-height: 30px;
+    padding: 0px 5px;
+    outline: none;
+    border: 0;
+    outline: 0;
+    line-height: 30px;
+    padding: 0 0 0 5px;
+    background: 0;
+}
+
+
+.U_C_Pag_II
+{
+    float: left;
+    width: auto;
+    height: 40px;
+    padding: 0px;
+    margin: 0px;
+    list-style: none;
+    border-radius: 20px;
+    border: 2px solid #f6f6f6;
+}
+.U_C_Pag_II > li
+{
+    display: inline-block;
+    float: left;
+    width: 40px;
+    height: 40px;
+    padding: 0px;
+    margin: 0px;
+    line-height: 40px;
+    text-align: center;
+    background: #fff;
+    border: 2px solid #e0e0e0;
+}
+.U_C_Pag_II > li:hover, .U_C_Pag_II_active
+{
+    background: #009cff !important;
+    color: #fff;
+    cursor: pointer;
+}
+.U_C_Pag_II_prev_btn
+{
+    border-radius: 20px 0px 0px 20px;
+}
+.U_C_Pag_II_next_btn
+{
+    border-radius: 0px 20px 20px 0px;
+}
+.U_C_Pag_II_Slider
+{
+    width: 100px;
+    margin-top: 5px;
+    float: left;
+    height: 30px;
+    margin-left: 20px;
+    border-radius: 20px;
+    background: #f3f4f5;
+}
+.U_C_Pag_II_input
+{
+    position: relative;
+    height: 25px;
+    width: 62px;
+    right: 0;
+    border: none;
+    outline: none;
+    float: right;
+    background: none;
+}
+.U_C_Pag_II_Slider_btn
+{
+    width: 30px;
+    height: 30px;
+    background: url("img/U_C_Pag_II_Slider_btn.png");
+    border-radius: 20px;
+    background-position: center;
+}
+.U_C_Pag_II_Slider_btn:hover
+{
+    cursor: pointer;
+}

+ 92 - 0
controls/pc/Pag/Pag.js

@@ -0,0 +1,92 @@
+Namespace.register("U.Control.Pag");  //登录页面的命名空间
+
+//下一页
+U.Control.Pag.Next = function (btn) {
+
+}
+
+//上一页
+U.Control.Pag.Prev = function (btn) {
+
+}
+
+//最后一页
+U.Control.Pag.Last = function (btn) {
+
+}
+
+
+
+//第一页
+U.Control.Pag.Frit = function (btn) {
+
+}
+
+//跳转
+U.Control.Pag.Jump = function (btn) {
+
+}
+
+U.Control.Pag.II = function (U_C_PAG_data) {//动态创建分页控件
+    if (!U_C_PAG_data) { U_C_PAG_data = 5; }
+    var U_C_Pag_II_container = $$("div", { "class": "U_C_Pag_II_container" }, document.body); //创建分页控件的容器
+    var U_C_Pag_II = $$("ul", { "class": "U_C_Pag_II", "id": "U_C_PAG_UL" }, U_C_Pag_II_container);
+    $$("li", { "class": "U_C_Pag_II_prev_btn", "innerHTML": "<<", "id": "U_C_pag_prev_btn" }, U_C_Pag_II);
+    for (var i = 1; i <= U_C_PAG_data; i++) {//用数组长度创建页码
+        $$("li", { "innerHTML": i, "class": "U_C_one_page" }, U_C_Pag_II);
+    }
+    $$("li", { "class": "U_C_Pag_II_next_btn", "innerHTML": ">>" }, U_C_Pag_II);
+    var jump_container = $$("div", { "class": "U_C_Pag_II_Slider" }, U_C_Pag_II_container); //创建跳转页码
+    $$("div", { "class": "U_C_Pag_II_Slider_btn" }, jump_container); //创建跳转按钮
+    return U_C_Pag_II_container;
+}
+
+
+U.Control.Pag.I = function (P) {
+    if (!P) { P = 5; }
+    var I = $$("div", { "id": "U_C_Pag_I", "style": { "margin": "50px"} }, $("body")[0]),
+        I_L = $$("div", { "id": "U_C_Pag_I_List", "class": "U_C_Pag_I_List" }, I),
+        I_L_U = $$("ul", { "id": "U_C_Pag_I_List_UL", "class": "U_C_Pag_I_List_UL" }, I_L),
+        I_L_U_N = $$("div", { "id": "U_C_Pag_I_Next", "class": "U_C_Pag_I_Next", "onclick": [[U.Control.Pag.Next, ([this])]] }, I_L),
+        I_L_U_L = $$("div", { "id": "U_C_Pag_I_Last", "class": "U_C_Pag_I_Last", "innerHTML": ">>", "onclick": [[U.Control.Pag.Last, ([this])]] }, I_L),
+        I_L_F = $$("div", { "class": "U_C_Pag_I_Find" }, I),
+        I_L_F_J = $$("div", { "id": "U_C_Pag_I_Jump", "class": "U_C_Pag_I_Jump", "onclick": [[U.Control.Pag.Jump, ([this])]] }, I_L_F),
+        I_L_F_JInp = $$("input", { "id": "U_C_Pag_Jump_Inp", "class": "U_C_Pag_Jump_Inp", "contenteditable": "true" }, I_L_F);
+    var i;
+    for (i = 1; i <= P; i++) {
+        $$("li", { "id": "Pag_" + i, "innerHTML": i, "onclick": "", "class": "U_C_Pag_I_List_UL_Li" }, I_L_U);
+    }
+    return I;
+}
+U.Control.Pag.I.create = function (P) {
+    //    alert("正在调整");
+    //    return;
+    //    pag = U.Control.Pag.I(P);
+    //    U.PG.PPage($("body")[0], 20, 1, 4, { "fun": [[function () { }, ([1])]], "page": [0] }, function () {
+    //        return { "pre": null, "next": $("#U_C_Pag_I_Next")[0], "frit": null, "last": $("#U_C_Pag_I_Last")[0], "input": [$("#U_C_Pag_Jump_Inp")[0], $("#U_C_Pag_I_Jump")[0]], "page": [$("#U_C_Pag_I_List_UL")[0], "U_C_Pag_I_List_UL_Li", "U_C_Pag_I_List_UL_DLi"] };
+    //    });
+    //U.MD.DynamicLoad("http://d.1473.cn/controls/pc/Pag/Pag1.css", "link");
+    var I = $$("div", { "id": "U_C_Pag_I", "style": { "margin": "50px"} }, null);
+    var pag = U.PG.PPage(I, 20, P, 5,
+    {
+        "isp": 5,
+        "fun": [[function (Page) {
+            U.Control.Pag.I.create(Page);
+        }, ([1])]],
+        "page": [0]
+    });
+    
+    return I;
+}
+
+U.Control.Pag.II.create = function (P) {
+    alert("正在调整");
+    return;
+    pag = U.Control.Pag.II(10);
+    //追加到那个元素下 一共有多少条数据 默认启始页位置 一页多少条数据  {"fun": 回调函数, 回调函数中第几个参数表示页数:}  返回函数 return {"pre": 上一页按钮的元素,"next":下一页,"frit": 首页,"last":尾页, "input":[输入框,跳转按钮],"page":[添加页数的位置,页数的样式名,当前页数的样式名]}
+    U.PG.PPage($("body")[0], 20, 1, 4, { "fun": [[function () { }, ([1])]], "page": [0] }, function () {
+        //                return { "pre": $("#U_C_Pag_I_Pre")[0], "next": $("#U_C_Pag_I_Next")[0], "frit": $("#U_C_Pag_I_Frit")[0], "last": $("#U_C_Pag_I_Last")[0], "input": [$("#U_C_Pag_Jump_Inp")[0], $("#U_C_Pag_I_Jump")[0]], "page": $("#U_C_Pag_I_List_UL")[0] };
+        return { "pre": null, "next": $("#U_C_pag_next_btn")[0], "frit": null, "last": null, "input": [$("#U_C_Pag_II_input")[0], $("#U_C_Pag_II_Slider_btn")[0]], "page": [$("#U_C_PAG_UL")[0], "U_C_one_page", "U_C_Pag_II_active"] };
+    });
+    return pag;
+}

+ 0 - 0
controls/pc/Pag/Pag1.css


Some files were not shown because too many files changed in this diff