529188c7b5f6e5c133d4480ae33b330fa673189d.svn-base 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293
  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/text/color.js"></script>
  16. <!--文本变色end-->
  17. <script>
  18. function initComplete(){
  19. var timer;
  20. $("#start").click(function(){
  21. changeColor();
  22. timer=setInterval(changeColor,2000)
  23. })
  24. $("#stop").click(function(){
  25. clearInterval(timer)
  26. $("#text1").animate({color:"#000000"})
  27. })
  28. var timer2;
  29. $("#start2").click(function(){
  30. changeColor2();
  31. timer2=setInterval(changeColor2,2000)
  32. })
  33. $("#stop2").click(function(){
  34. clearInterval(timer2)
  35. $(".tableStyle").find("td").animate({color:"#000000"})
  36. })
  37. }
  38. //单行变色
  39. function changeColor(){
  40. $("#text1").animate({color:"red"})
  41. $("#text1").animate({color:"#bc27d2"})
  42. $("#text1").animate({color:"#2794d2"})
  43. }
  44. //多行变色
  45. function changeColor2(){
  46. $(".tableStyle").find("td").animate({color:"red"})
  47. $(".tableStyle").find("td").animate({color:"#2794d2"})
  48. $(".tableStyle").find("td").animate({color:"#bc27d2"})
  49. }
  50. </script>
  51. </head>
  52. <body>
  53. <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;">
  54. <fieldset>
  55. <legend>1、单行变色</legend>
  56. <div id="text1">提醒:您有新的消息!</div>
  57. <input type="button" id="start" value="开始" class="button">
  58. <input type="button" id="stop" value="停止" class="button">
  59. </fieldset>
  60. <div class="height_15"></div>
  61. <fieldset>
  62. <legend>2、多行变色</legend>
  63. <input type="button" id="start2" value="开始" class="button">
  64. <input type="button" id="stop2" value="停止" class="button">
  65. <table class="tableStyle">
  66. <tr>
  67. <th class="th">姓名</th><th class="th">性别</th><th class="th">年龄</th>
  68. </tr>
  69. <tr id="a1">
  70. <td>张小三</td><td>男</td><td>25</td>
  71. </tr>
  72. <tr id="a2">
  73. <td>张小三</td><td>男</td><td>25</td>
  74. </tr>
  75. <tr id="a3">
  76. <td>张小三</td><td>男</td><td>25</td>
  77. </tr>
  78. <tr>
  79. <td>张小三</td><td>男</td><td>25</td>
  80. </tr>
  81. </table>
  82. </fieldset>
  83. <div class="height_15"></div>
  84. </div></div></div></div><div class="box_bottomcenter"><div class="box_bottomleft"><div class="box_bottomright"></div></div></div></div>
  85. </body>
  86. </html>