js 旋转图片
摘要:
/*图片转动函数*/ function rotate(o, p) { var img = document.getElementById(o); if(!img || !p) return false; var n = img.getAttribute('step'); if(n == null) n=0; if(p=='right') { (n==3)?n=0:n++; } else if(p="left"){ (n==0)?n=3:n--; } img.setAttribute('step', n); if(documen 阅读全文
posted @ 2013-02-20 19:35 小嘟 阅读(371) 评论(0) 推荐(0) 编辑