摘要:
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(... 阅读全文
摘要:
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 ... 阅读全文