b73864be006eb1a7d26d28a83f393ed03a8b985b.svn-base 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  2. <html xmlns="http://www.w3.org/1999/xhtml">
  3. <head>
  4. <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
  5. <title>颜色选择器</title>
  6. <!--框架必需start-->
  7. <script type="text/javascript" src="../../libs/js/jquery.js"></script>
  8. <script type="text/javascript" src="../../libs/js/language/cn.js"></script>
  9. <script type="text/javascript" src="../../libs/js/framework.js"></script>
  10. <link href="../../libs/css/import_basic.css" rel="stylesheet" type="text/css"/>
  11. <link rel="stylesheet" type="text/css" id="skin" prePath="../../"/>
  12. <link rel="stylesheet" type="text/css" id="customSkin"/>
  13. <!--框架必需end-->
  14. <!-- 颜色选择器start -->
  15. <script type="text/javascript" src="../../libs/js/form/color.js"></script>
  16. <!-- 颜色选择器end -->
  17. </head>
  18. <body>
  19. <div class="box1" style="width: 800px;"><div class="box_topcenter"><div class="box_topleft"><div class="box_topright"></div></div></div><div class="box_middlecenter"><div class="box_middleleft"><div class="box_middleright"><div class="boxContent" style="overflow: visible;height:500px;">
  20. <fieldset>
  21. <legend>基本使用</legend>
  22. <input type="text" class="color" id="color1"/>
  23. <input type="button" value="获取值" onclick="getValue()" class="button"/>
  24. <br/>使用颜色选择器时需要手动渲染,其余用法与组件API一致。
  25. </fieldset>
  26. <div class="height_15"></div>
  27. </div></div></div></div><div class="box_bottomcenter"><div class="box_bottomleft"><div class="box_bottomright"></div></div></div></div>
  28. <script>
  29. function initComplete(){
  30. $("#color1").render();
  31. }
  32. //获取值
  33. function getValue(){
  34. top.Dialog.alert($("#color1").val())
  35. }
  36. </script>
  37. </body>
  38. </html>