<html>
<head> <meta name="GENERATOR" content="Microsoft FrontPage 5.0"> <meta name="rogId" content="FrontPage.Editor.Document"> <meta http-equiv="Content-Type" content="text/html; charset=gb2312"> <title>新建网页 1</title> </head>
<body>
<DIV STYLE="LEFT: 10px; POSITION: absolute; TOP: 15px; width: 200"> <DIV style="LEFT: 0px; POSITION: absolute; TOP: 0px"> <IMG height=85 src="bgclock.gif" width=83> </DIV> <DIV STYLE="LEFT: 0px; POSITION: absolute; TOP: 0px"> <OBJECT CLASSID=CLSID:369303C2-D7AC-11D0-89D5-00A0C90833E6 HEIGHT=14 ID=secondObj STYLE="HEIGHT: 85px; WIDTH: 83px" WIDTH=14> <ARAM NAME="HighQuality" value="1"> <ARAM NAME="Line0001" value="SetFillStyle(1)"> <ARAM NAME="Line0002" value="SetLineColor(80,20,20)"> <ARAM NAME="Line0003" value="SetFillColor(80,20,20)"> <ARAM NAME="Line0004" value="Rect(0,0,1,24)"> </OBJECT></DIV> <DIV STYLE="LEFT: 0px; POSITION: absolute; TOP: 0px"> <OBJECT CLASSID=CLSID:369303C2-D7AC-11D0-89D5-00A0C90833E6 HEIGHT=14 ID=minuteObj STYLE="HEIGHT: 85px; WIDTH: 83px" WIDTH=14> < ARAM NAME="HighQuality" value="1"> < ARAM NAME="Line0001" value="SetFillStyle(1)"> < ARAM NAME="Line0002" value="SetLineColor(50,50,50)"> < ARAM NAME="Line0003" value="SetFillColor(50,50,50)"> < ARAM NAME="Line0004" value="Rect(0,0,1,20)"> </OBJECT></DIV> <DIV STYLE="LEFT: 0px; POSITION: absolute; TOP: 0px"> <OBJECT CLASSID=CLSID:369303C2-D7AC-11D0-89D5-00A0C90833E6 HEIGHT=14 ID=hourObj STYLE="HEIGHT: 85px; WIDTH: 83px" WIDTH=14> < ARAM NAME="HighQuality" value="1"> < ARAM NAME="Line0001" value="SetFillStyle(1)"> < ARAM NAME="Line0002" value="SetLineColor(50,50,50)"> < ARAM NAME="Line0003" value="SetFillColor(50,50,50)"> < ARAM NAME="Line0004" value="Rect(0,0,1,15)"> </OBJECT></DIV> </DIV> <SCRIPT LANGUAGE=javascript> var now var second var minute var hour
var degreeSecond var degreeMinute var degreeHour
var timer var stepDegree=6 var stepDegreeHour=30
function checkTime() { if (document.all) { now=new Date() second=now.getSeconds() minute=now.getMinutes() hour=now.getHours() if (hour>=12) {hour=hour-12} spinIt() timer=setTimeout("checkTime()",200) } }
function spinIt() { window.status=hour secondObj.SetIdentity() minuteObj.SetIdentity() hourObj.SetIdentity()
degreeSecond=180+stepDegree*second degreeMinute=180+stepDegree*minute degreeHour=180+stepDegreeHour*hour+(Math.floor(stepDegree*minute/12))
secondObj.Rotate(0,0,degreeSecond) minuteObj.Rotate(0,0,degreeMinute) hourObj.Rotate(0,0,degreeHour) } window.onload=checkTime; </SCRIPT></body>
</html> |