<!DOCTYPE html>
<html>
<head lang="en">
<meta charset="UTF-8">
<title></title>
<style>
</style>
</head>
<body>
<canvas id="canvas" width="500" height="500">你的浏览器不支持canvas技术</canvas>
<script>
var c=document.getElementById('canvas');
var ctx= c.getContext('2d');
ctx.translate(c.width/2, c.height/2);
//首先绘制8个静态环绕的圆形
function create() {
for (var i = 1; i < 9; i++) {
if (i==1) {
ctx.beginPath();
ctx.arc(0, -30, 5, 0, 2 * Math.PI);
ctx.fillStyle='#f0f';
ctx.fill();
}else{
ctx.beginPath();
ctx.arc(0, -30, 5, 0, 2 * Math.PI);
ctx.strokeStyle ='#000';
ctx.stroke();
}
ctx.rotate(Math.PI * 45 / 180);
}
}
//定时转动
setInterval(function(){
ctx.clearRect(-c.width/2,-c.height, c.width, c.height);
create();
ctx.rotate(Math.PI*45/180);
},300);
//定时关闭加载
setTimeout(function(){
c.style.display='none';
},12200);
//
</script>
</body>
</html>
机械节能产品生产企业官网模板...
大气智能家居家具装修装饰类企业通用网站模板...
礼品公司网站模板
宽屏简约大气婚纱摄影影楼模板...
蓝白WAP手机综合医院类整站源码(独立后台)...苏ICP备2024110244号-2 苏公网安备32050702011978号 增值电信业务经营许可证编号:苏B2-20251499 | Copyright 2018 - 2025 源码网商城 (www.ymwmall.com) 版权所有