15aedcc8afe978d5d4afe59746966a9f4f4158ee.svn-base 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  2. <html xmlns="http://www.w3.org/1999/xhtml">
  3. <head>
  4. <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
  5. <title>文本域</title>
  6. <!--框架必需start-->
  7. <script type="text/javascript" src="../../libs/js/jquery.js"></script>
  8. <script type="text/javascript" src="../../libs/js/language/cn.js"></script>
  9. <script type="text/javascript" src="../../libs/js/framework.js"></script>
  10. <link href="../../libs/css/import_basic.css" rel="stylesheet" type="text/css"/>
  11. <link rel="stylesheet" type="text/css" id="skin" prePath="../../"/>
  12. <link rel="stylesheet" type="text/css" id="customSkin"/>
  13. <!--框架必需end-->
  14. </head>
  15. <body>
  16. <div class="box1" 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;">
  17. <fieldset>
  18. <legend>1、基本文本域</legend>
  19. <table width="100%" >
  20. <tr>
  21. <td width="10%">备注:</td><td width="90%"><textarea class="textarea"></textarea></td>
  22. </tr>
  23. </table>
  24. 如果希望出现鼠标移入和点击时边框变色,可以手动调用render()方法渲染。
  25. </fieldset>
  26. <div class="height_15"></div>
  27. <fieldset>
  28. <legend>2、设置初始值</legend>
  29. <table width="100%" >
  30. <tr>
  31. <td width="10%">备注:</td><td width="90%"><textarea class="textarea">这是初始值</textarea></td>
  32. </tr>
  33. </table>
  34. </fieldset>
  35. <div class="height_15"></div>
  36. <fieldset>
  37. <legend>3、自定义尺寸</legend>
  38. <table width="100%" >
  39. <tr>
  40. <td width="10%">备注:</td><td width="90%"><textarea style="width:350px;height:150px;" class="textarea"></textarea></td>
  41. </tr>
  42. </table>
  43. </fieldset>
  44. <div class="height_15"></div>
  45. <fieldset>
  46. <legend>4、禁用/启用</legend>
  47. <table width="100%">
  48. <tr>
  49. <td width="10%">备注:</td><td width="90%"><textarea id="textarea-9" disabled="true" class="textarea"></textarea></td>
  50. </tr>
  51. <tr>
  52. <td colspan="2">
  53. <input type="button" class="button" value="启用" onclick="enableSelect()" style="width:105px;"/>
  54. <input type="button" class="button" value="禁用" onclick="disableSelect()" style="width:105px;"/>
  55. </td>
  56. </tr>
  57. </table>
  58. </fieldset>
  59. <div class="height_15"></div>
  60. </div></div></div></div><div class="box_bottomcenter"><div class="box_bottomleft"><div class="box_bottomright"></div></div></div></div>
  61. <script type="text/javascript">
  62. //设为不可用
  63. function disableSelect(){
  64. $("#textarea-9").attr("disabled",true);
  65. }
  66. //设为可用
  67. function enableSelect(){
  68. $("#textarea-9").attr("disabled",false);
  69. }
  70. </script>
  71. </body>
  72. </html>