function changeBorder(obj){
var timer = null;
var i = 0;
clearInterval(timer);
obj.onmouseover = function(){
clearInterval(timer);
};
obj.style.borderColor = i++ % 2 ? "#ccc" : "#000";
if(i>2){
clearInterval(timer);
}
/* i>8 && clearInterval(timer); */
}
js实现单个div闪烁
最新推荐文章于 2023-07-26 18:45:26 发布