V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
V2EX  ›  xiaomibaobao  ›  全部回复第 11 页 / 共 11 页
回复总数  201
1 ... 2  3  4  5  6  7  8  9  10  11  
2016-06-07 17:09:06 +08:00
回复了 TohsakaRin 创建的主题 程序员 求教 js 轮播图问题
stopStart:function stopStart(){
var _this=this;
_this.oBox.onmouseover=function(){
clearInterval(_this.autoTimer);
utils.css(_this.oBtnLeft,'display','block');
utils.css(_this.oBtnRight,'display','block');
};
_this.oBox.onmouseout=function(){
_this.autoTimer=setInterval(function(){
_this.autoMove();
},_this.interval);
utils.css(_this.oBtnLeft,'display','none');
utils.css(_this.oBtnRight,'display','none');
};
}

obox 是整个轮播图的最外面 div ,另外楼主,我也是在自学前端 ING ,可以一起交流下?
1 ... 2  3  4  5  6  7  8  9  10  11  
关于   ·   帮助文档   ·   自助推广系统   ·   博客   ·   API   ·   FAQ   ·   Solana   ·   5288 人在线   最高记录 6679   ·     Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 13ms · UTC 06:46 · PVG 14:46 · LAX 22:46 · JFK 01:46
♥ Do have faith in what you're doing.