811902dccfb0e04340f65bb6641bb7c0b94548c8.svn-base 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  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. <div id="toolTipDemo">
  20. <span title="不超过5字">小尺寸提示</span>
  21. <div class="height_10"></div>
  22. <span title="图片过大会撑坏网页结构。">中尺寸提示</span>
  23. <div class="height_10"></div>
  24. <span title="图片过大会撑坏网页结构。对于大图可以强制设置width(不要设置height),这样可以对大图片等比例缩小。图片过大会撑坏网页结构。对于大图可以强制设置width(不要设置height),这样可以对大图片等比例缩小。">大尺寸提示</span><br />
  25. <div class="height_10"></div>
  26. <span title="图片过大<br/>会<span style='color:red;'>撑坏</span>网页结构。">提示信息含html元素</span>
  27. </div>
  28. </fieldset>
  29. <div class="height_15"></div>
  30. <fieldset>
  31. <legend>2、第二种提示(非鼠标移入触发)</legend>
  32. 下面的是onfocus事件触发:<br />
  33. <input type="text" class="textinput" onfocus="$.cursorMessage('注意不能输入特殊字符');"/><br />
  34. 下面的是onkeydown事件触发:<br />
  35. <textarea class="textarea" onkeydown="$.cursorMessage('填写详细有助于我们更好地服务');"></textarea>
  36. </fieldset>
  37. <div class="height_15"></div>
  38. </div></div></div></div><div class="box_bottomcenter"><div class="box_bottomleft"><div class="box_bottomright"></div></div></div></div>
  39. <script>
  40. $(document).ready(function(){
  41. $("#toolTipDemo").find("span").each(function(){
  42. addTooltip($(this)[0]);
  43. })
  44. })
  45. </script>
  46. </body>
  47. </html>