重点
-
广告定位
position:fixed ; right:0; bottom:0
-
广告事件处理
$("clickMe").onmouseover= function(){//鼠标移入事件
$("showPic").className = "show";
$('closeBtn').style.display = 'block';
}
$("closeBtn").onclick= function(){//鼠标点击事件
$("closeBtn").className = "hide";
$("showPic").className = "hide";
}
-
函数封装
var $ = function(id){
return document.getElementById(id);
}
网友评论