⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 daojishi[1].txt

📁 应用于高等院校党团思想教育
💻 TXT
字号:
<html>

<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<script>
<!--make by Campo,you can get more javascript source at http://www.tastelife.net-->
var timer,str
function daojishi(){
today=new Date()
oldday=new Date("Sep 7,2001");
predate=24*60*60*1000
prehour=60*60*1000
preminute=60*1000
presecond=1000
timeleft=oldday.getTime()-today.getTime()
dateleft=Math.round(timeleft/predate)
hourleft1=(timeleft-dateleft*predate)/prehour
hourleft=Math.round(hourleft1)
hourleftc=hourleft+12
minuteleft1=timeleft-dateleft*predate-hourleft*prehour
minuteleft=Math.round(minuteleft1/preminute)
minuteleftc=minuteleft+30
secondleft1=timeleft-dateleft*predate-hourleft*prehour-minuteleft*preminute
secondleft=Math.round(secondleft1/presecond)
secondleftc=secondleft+30
str=dateleft+"天"+hourleftc+"小时"+minuteleftc+"分钟"+secondleftc+"秒"
document.clock.left.value=str;
timer=setTimeout("daojishi()",1000);
}
</script>
<title>倒计时</title><style type="text/css">
<!--
A {  FONT-SIZE: 10PT; COLOR:blue; TEXT-DECORATION: NONE}
a:hover {  font-size: 10pt; color: black;}
td {font-size:10pt}
-->
</style></head>

<body topmargin="0" bgcolor=#FFFFCC onload=daojishi()>
  
<div align="center">
  <center><iframe width="468" height="60" marginwidth="0"  scrolling="no" marginheight="0" align="top" name="ads" frameborder="0" src="../../ads.htm" >     
 </iframe>  
  <table border="0" cellpadding="0" cellspacing="0" width="100%">
    <tr>
      <td width="100%" align="center">
        <table style="border: 1 solid #000000" width="100%">
          <tr>
              <td align="middle" height="149" width="100%">倒计时<br><form name="clock">
  离2001年9月7号还有:<input type="text" name="left">
</form>
                <br>
            <textarea class="text" cols="60" name="S1" rows="5" style="BORDER-BOTTOM: #000000 1px solid; BORDER-LEFT: #000000 1px solid; BORDER-RIGHT: #000000 1px solid; BORDER-TOP: #000000 1px solid; overflow-y: auto;overflow-x:hidden;"><script>
<!--make by Campo,you can get more javascript source at http://www.tastelife.net-->
var timer,str
function daojishi(){
today=new Date()
oldday=new Date("Sep 7,2001");
predate=24*60*60*1000
prehour=60*60*1000
preminute=60*1000
presecond=1000
timeleft=oldday.getTime()-today.getTime()
dateleft=Math.round(timeleft/predate)
hourleft1=(timeleft-dateleft*predate)/prehour
hourleft=Math.round(hourleft1)
hourleftc=hourleft+12
minuteleft1=timeleft-dateleft*predate-hourleft*prehour
minuteleft=Math.round(minuteleft1/preminute)
minuteleftc=minuteleft+30
secondleft1=timeleft-dateleft*predate-hourleft*prehour-minuteleft*preminute
secondleft=Math.round(secondleft1/presecond)
secondleftc=secondleft+30
str=dateleft+"天"+hourleftc+"小时"+minuteleftc+"分钟"+secondleftc+"秒"
document.clock.left.value=str;
timer=setTimeout("daojishi()",1000);
}
</script></textarea><br>
              <input name="B2" onclick="S1.select()" type="reset" value="选取代码">&nbsp;           
              <input name="B2" onclick="window.close()" type="reset" value="关闭窗口">                 
            </td>                 
          </tr>                 
          <tr>                 
            <td align="middle" height="12" width="100%">                 
                <p align="left">说明:把上面代码放到&lt;head&gt;&lt;/head&gt;之间
                <p align="left">在合适地方加入&lt;form name=&quot;clock&quot;&gt;<br>
                  离2001年9月7号还有:&lt;input type=&quot;text&quot; name=&quot;left&quot;&gt;<br>
                  &lt;/form&gt;<br>
                <p align="left">&nbsp;
                <p align="left">&lt;body&gt;改为:&lt;body onload=daojishi()&gt;
                </td>               
          </tr>               
        </table>               
      </td>               
    </tr>               
  </table>               
  </center>               
</div>               
               
</body>               
               
</html>               

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -