<!DOCTYPE html>
<html lang="zh">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>analogClock.js时钟插件 - 网页模板</title>
<link rel="stylesheet" type="text/css" href="css/zzsc.css">
<style type="text/css">
.clock{
width: 400px;
margin: 30px auto;
}
</style>
</head>
<body>
<div id="clock1" class="clock"></div>
<div id="clock2" class="clock"></div>
<div id="clock3" class="clock"></div>
<div id="clock4" class="clock"></div>
<script src="js/analogClock.js"></script>
<script>
AnalogClock("clock1");//simple use
AnalogClock("clock2", { width: 300, bgColor: "#bf0" });//simple option
AnalogClock("clock3", new AnalogClockOption(200, "#eee", "#333"));//using option class to customize
//base on object use, returns an clock object, can do some further style controll by the returned object.
var opt = new AnalogClockOption(); opt.width = 100;
var clock = new AnalogClock("clock4", opt);
clock.panel.style.border = "solid 1px red";
</script>
<div style="text-align:center;margin:50px 0; font:normal 14px/24px 'MicroSoft YaHei';">
<p>适用浏览器:360、FireFox、Chrome、Opera、傲游、搜狗、世界之窗. 不支持Safari、IE8及以下浏览器。</p>
<p>来源:<a href="http://www.moobnn.com/" target="_blank">网页模板</a></p>
</div>
</body>
</html>