Skip to content

Commit a6fbe6a

Browse files
committed
修正鼠标暂停bug
1 parent 5853e8f commit a6fbe6a

File tree

1 file changed

+15
-6
lines changed

1 file changed

+15
-6
lines changed

topmove.html

Lines changed: 15 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,9 @@
6767
overflow: hidden;
6868
width: 180px;
6969
}
70+
#moocbox ul li a:hover{
71+
color:red;
72+
}
7073
#mooc span{
7174
color:#999;
7275
float: right;
@@ -115,14 +118,20 @@ <h3 id="mooc_head">慕课网最新课程
115118
box.scrollTop=0;
116119
}
117120
}
121+
box.onmouseover=function(){
122+
clearInterval(time);
123+
}
124+
box.onmouseout=function(){
125+
time=setInterval(scrollUp,speed);
126+
}
118127
}
119128
setTimeout(startMove,delay);
120-
box.onmouseover=function(){
121-
clearInterval(time);
122-
}
123-
box.onmouseout=function(){
124-
startMove();
125-
}
129+
// box.onmouseover=function(){
130+
// clearInterval();
131+
// }
132+
// box.onmouseout=function(){
133+
// startMove();
134+
// }
126135
</script>
127136
</body>
128137
</html>

0 commit comments

Comments
 (0)