$size_small=5;//液晶宽度 $size_big=25;//液晶长度 $distance=10;//间距 $color_back="#DDDDDD"; $color_dark="#CCCCCC"; $color_light="#000000"; $number=0; ?> Timer <br>// ***************************************************************** <br>// Written By Caocao <br>// caocao@eastday.com <br>// http://caocao.oso.com.cn <br>// ***************************************************************** <br>function swapcolor(obj,onoff)//改变颜色 <br>{ <br> if (onoff) <br> { <br> obj.style.background="<? echo $color_light;?>"; <br> } <br> else <br> { <br> obj.style.background="<? echo $color_dark;?>"; <br> } <br>} <br>function change(number,timer)//处理数字显示 <br>{ <br> switch (timer) <br> { <br> case 0: <br> swapcolor(eval("time"+number+"0"),1); <br> swapcolor(eval("time"+number+"1"),1); <br> swapcolor(eval("time"+number+"2"),1); <br> swapcolor(eval("time"+number+"3"),0); <br> swapcolor(eval("time"+number+"4"),1); <br> swapcolor(eval("time"+number+"5"),1); <br> swapcolor(eval("time"+number+"6"),1); <br> break; <br> case 1: <br> swapcolor(eval("time"+number+"0"),0); <br> swapcolor(eval("time"+number+"1"),0); <br> swapcolor(eval("time"+number+"2"),1); <br> swapcolor(eval("time"+number+"3"),0); <br> swapcolor(eval("time"+number+"4"),0); <br></p> <p align="left"></p> <div style="display:none;"> <span id="url" itemprop="url">http://www.bkjia.com/PHPjc/631745.html</span><span id="indexUrl" itemprop="indexUrl">www.bkjia.com</span><span id="isOriginal" itemprop="isOriginal">true</span><span id="isBasedOnUrl" itemprop="isBasedOnUrl">http://www.bkjia.com/PHPjc/631745.html</span><span id="genre" itemprop="genre">TechArticle</span><span id="description" itemprop="description">? $size_small=5;//液晶宽度 $size_big=25;//液晶长度 $distance=10;//间距 $color_back=#DDDDDD; $color_dark=#CCCCCC; $color_light=#000000; $number=0; ? html head titleTimer/ti...</span> </div> <div class="art_confoot"></div>