<!DOCTYPE html>
<html>
<head>
<title>index.html</title>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<script type="text/javascript"
src="../../plugin/jquery/jquery-2.1.1.min.js"></script>
<style>
div {
position: absolute;
top: 20px;
left: 20px;
width: 378px;
height: 378px;
}
#clock {
background-image: url('images/clockFace.png');
}
#second {
width: 378px;
height: 378px;
}
</style>
<script>
var second = 0, minute = 0;
function moveSecond() {
second++;
minute = second / 60;
$("#minute").css("transform", "rotate(" + 6 * minute + "deg)");
$("#hour").css("transform", "rotate(" + 0.5 * minute + "deg)");
$("#second").css("transform", "rotate(" + 6 * second + "deg)");
}
$(function() {
var currentDate = new Date();
second = currentDate.getHours() * 60 * 60 + currentDate.getMinutes()
* 60 + currentDate.getSeconds();
setInterval("moveSecond()", 1000);
});
</script>
</head>
<body>
<div class="main">
<div id="clock"></div>
<div id="hour">
<img src="images/hourHand.png" />
</div>
<div id="minute">
<img src="images/minuteHand.png" />
</div>
<div id="second">
<img src="images/secondHand.png" />
</div>
</div>
</body>
</html>
资源地址http://download.youkuaiyun.com/detail/caofeilong20941/8030597
有问题的可以下评论的啊