摘要: 1 var btn = document.getElementById("btn"), show = document.getElementById("content"), count = 0; 2 btn.onmouseover = function(){ 3 console.log(this) 4 this.style.cssText = "cursor : pointer;"; 5 }; 6 btn.onclick = function(e){ 7 console.log(count); 8 if(... 阅读全文
posted @ 2013-09-12 16:26 楚玉 阅读(380) 评论(0) 推荐(0) 编辑
摘要: 1 ;(function(global){ 2 var wind = document.getElementById("wind"), count = 0; 3 4 function marque(){ 5 console.log("wind.offsetTop:",wind.offsetTop,"wind.offsetLeft::",wind.offsetLeft); 6 7 8 /*wind.style.left = 12 + wind.offsetLeft + "px"; 9 ... 阅读全文
posted @ 2013-09-12 16:24 楚玉 阅读(317) 评论(0) 推荐(0) 编辑