<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Document</title>
<style>
div{
width:200px;
height:200px;
border-radius: %;
border:1px solid #;
position: relative;
margin:5px auto;
text-align: center;
box-shadow: 0px 0px 20px 5px #;
}
div span{
transform-origin: bottom center;
}
.sec{
position: absolute;
top:%;
left:%;
margin-left:-2px;
margin-top:-80px;
height:80px;
width:4px;
background: red;
border-radius: % % ;
}
.min{
position: absolute;
top:%;
left:%;
margin-left:-3px;
margin-top:-60px;
height:60px;
width:6px;
background: #;
border-radius: % % ;
}
.hou{
position: absolute;
top:%;
left:%;
margin-left:-4px;
margin-top:-40px;
height:40px;
width:8px;
background: #;
border-radius: % % ;
}
.cap{
position: absolute;
top:%;
left:%;
margin-left:-6px;
margin-top:-6px;
height:12px;
width:12px;
background: radial-gradient(#ccc,#);
border-radius: %;
}
i b{
position: absolute;
top:12px;
left:-4px;
}
</style>
<script>
window.onload=function(){
var aSpan=document.querySelectorAll('span');
var oBox=document.getElementById('box');
clock();
setInterval(clock,); for (var i = ; i <; i++) {
var oI=document.createElement('i');
oI.style.width='6px';
if(i%){
oI.style.height='8px';
}else{
oI.innerHTML='<b>'+i/+'</b>';
oI.children[].style.transform='rotate(-'+i*+'deg)';
oI.style.height='16px';
} oI.style.position='absolute';
oI.style.top='0px';
oI.style.left='100px';
oI.style.background='#000';
oI.style.transform='rotate('+i*+'deg)';
oI.style.transformOrigin='0px 100px'; oBox.appendChild(oI);
}
function clock(){
var oDate=new Date();
var h=oDate.getHours();
var m=oDate.getMinutes();
var s=oDate.getSeconds();
var ms=oDate.getMilliseconds(); aSpan[].style.transform='rotate('+(*(h%)/+m*/)+'deg)';
aSpan[].style.transform='rotate('+(*m/+s*/)+'deg)';
aSpan[].style.transform='rotate('+(*s/+ms*/)+'deg)';
}
};
</script>
</head>
<body>
<div id="box">
<span class="sec"></span>
<span class="min"></span>
<span class="hou"></span>
<p class="cap"></p>
</div>
</body>
</html>

最新文章

  1. linux 查看内存的插槽数
  2. Eclipse中10个最有用的快捷键组合(转)
  3. oracle 10g 学习之视图、序列、索引、同义词(9)
  4. BZOJ3589 : 动态树
  5. php字符串截取问题
  6. (转)MyEclipse2014配置Tomcat开发JavaWeb程序JSP以及Servlet
  7. 算法题C#
  8. Web Service进阶(一)运行原理
  9. 深入理解JNI
  10. 增长中的时间序列存储(Scaling Time Series Data Storage) - Part I
  11. Petrozavodsk Winter Camp, Day 8, 2014, Mosaic
  12. IDEA项目搭建九——MybatisPlus多数据库实现
  13. cocos2d-x android工程接入第三方支付宝SDK
  14. Search中的剪枝-奇偶剪枝
  15. day044 cssy其他样式 js初识
  16. 一文全解:利用谷歌深度学习框架Tensorflow识别手写数字图片(初学者篇)
  17. bootstrap-datepicker实现日期input readonly 标签中选择时间功能
  18. go json解析
  19. DRF的认证、权限 和 限制
  20. JavaScript js调用堆栈(一)

热门文章

  1. const char * char * const
  2. iOS开发拓展篇—xib中关于拖拽手势的潜在错误
  3. 在Ubuntu上安装JDK、Ant、Jmeter和Jenkins
  4. 【matlab】用matlab 保存带标记图像、图片的方法总结
  5. jboss入门学习1
  6. JavaScript基础--面向对象三大特性(八):继承封装多态
  7. 【转】使用Sublime + PlantUML高效地画图
  8. iOS 剪贴板基本知识
  9. javaweb--下载文件列出
  10. [转]http://lua-users.org/wiki/LpegTutorial