2c0a087d3a5806be898be6a998e573a4b58b4333.svn-base 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  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/method/typewatch.js"></script>
  16. <!--监听文字改变end-->
  17. <script type="text/javascript">
  18. $(function(){
  19. $("#text1").typeWatch( { captureLength:2,highlight:false,wait:2000, callback:finished } );
  20. })
  21. function finished(txt) {
  22. top.Dialog.alert('输入: ' + txt);
  23. }
  24. </script>
  25. </head>
  26. <body>
  27. <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;">
  28. <fieldset>
  29. <legend>1、基本使用</legend>
  30. <textarea id="text1" watermark="请输入两个以上的字" class="textarea"></textarea>
  31. </fieldset>
  32. <div class="height_15"></div>
  33. </div></div></div></div><div class="box_bottomcenter"><div class="box_bottomleft"><div class="box_bottomright"></div></div></div></div>
  34. </body>
  35. </html>