用canvas实现图片转动效果:
<!DOCTYPE html>
<html>
<head>
</head>
<body>
<canvas id="myCanvas" width="240" height="240" style="border:1px solid red;margin:0;padding:0;">
</canvas>
<script>
var ctx;
var pic;
var i=0;
var screen_w = 'ontouchstart' in window ? screen.width:document.body.clientWidth;
var pic_w = null;
window.οnlοad=function(){
}
function rotate(){
}
</script>
</body>
</html>
文章来源http://bbs.html5cn.org/thread-362-1-26.html