<div class="htmlarea"> <textarea id="runcode39384"> <style type="text/css"> #oTime { color: blue; font-size: 12px; } </style> <script language="javascript"> var _t; var _h = 2; var _m = 0; var _s = 0; var _v = formatTime(_h + ':' + _m + ':' + _s); function doTime() { _s --; if (_s == -1) { _m --; _s = 59; } if (_m == -1) { _h --; _m = 59; } var _b = ((_h == 0) && (_m == 0) && (_s == 0)); if (_b) { _v = 'Welcome To IECN.NET'; clearTimeout(_t); } else { _v = formatTime(_h + ':' + _m + ':' + _s); _t = setTimeout('doTime()', 1000); } document.all['oTime'].innerHTML = _v; } function formatTime(_time) { return _time.replace(/\b(\w)\b/g, '0$1'); } onload = function() { document.all['oTime'].innerHTML = _v; _t = setTimeout('doTime()', 1000); } </script> <span id="oTime"></span> </textarea><br><input onclick="runEx('runcode39384')" type="button" value="运行代码"> <input onclick="doCopy('runcode39384')" type="button" value="复制代码"> <input onclick="doSave(runcode39384)" type="button" value="保存代码">[Ctrl+A 全选 注:<a href="http://www.jb51.net/article/23421.htm" title="查看具体详情" target="_blank">如需引入外部Js需刷新才能执行</a>]</div>