123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293 |
- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
- <html xmlns="http://www.w3.org/1999/xhtml">
- <head>
- <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
- <title></title>
- <!--框架必需start-->
- <script type="text/javascript" src="../../libs/js/jquery.js"></script>
- <script type="text/javascript" src="../../libs/js/language/cn.js"></script>
- <script type="text/javascript" src="../../libs/js/framework.js"></script>
- <link href="../../libs/css/import_basic.css" rel="stylesheet" type="text/css"/>
- <link rel="stylesheet" type="text/css" id="skin" prePath="../../"/>
- <link rel="stylesheet" type="text/css" id="customSkin"/>
- <!--框架必需end-->
- <!--文本变色start-->
- <script type="text/javascript" src="../../libs/js/text/color.js"></script>
- <!--文本变色end-->
- <script>
- function initComplete(){
- var timer;
- $("#start").click(function(){
- changeColor();
- timer=setInterval(changeColor,2000)
- })
- $("#stop").click(function(){
- clearInterval(timer)
- $("#text1").animate({color:"#000000"})
- })
-
- var timer2;
- $("#start2").click(function(){
- changeColor2();
- timer2=setInterval(changeColor2,2000)
- })
- $("#stop2").click(function(){
- clearInterval(timer2)
- $(".tableStyle").find("td").animate({color:"#000000"})
- })
- }
- //单行变色
- function changeColor(){
- $("#text1").animate({color:"red"})
- $("#text1").animate({color:"#bc27d2"})
- $("#text1").animate({color:"#2794d2"})
- }
- //多行变色
- function changeColor2(){
- $(".tableStyle").find("td").animate({color:"red"})
- $(".tableStyle").find("td").animate({color:"#2794d2"})
- $(".tableStyle").find("td").animate({color:"#bc27d2"})
- }
- </script>
- </head>
- <body>
- <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;">
- <fieldset>
- <legend>1、单行变色</legend>
- <div id="text1">提醒:您有新的消息!</div>
- <input type="button" id="start" value="开始" class="button">
- <input type="button" id="stop" value="停止" class="button">
- </fieldset>
- <div class="height_15"></div>
-
-
- <fieldset>
- <legend>2、多行变色</legend>
- <input type="button" id="start2" value="开始" class="button">
- <input type="button" id="stop2" value="停止" class="button">
- <table class="tableStyle">
- <tr>
- <th class="th">姓名</th><th class="th">性别</th><th class="th">年龄</th>
- </tr>
- <tr id="a1">
- <td>张小三</td><td>男</td><td>25</td>
- </tr>
- <tr id="a2">
- <td>张小三</td><td>男</td><td>25</td>
- </tr>
- <tr id="a3">
- <td>张小三</td><td>男</td><td>25</td>
- </tr>
- <tr>
- <td>张小三</td><td>男</td><td>25</td>
- </tr>
- </table>
- </fieldset>
- <div class="height_15"></div>
-
- </div></div></div></div><div class="box_bottomcenter"><div class="box_bottomleft"><div class="box_bottomright"></div></div></div></div>
- </body>
- </html>
|