相关疑难解决方法(0)

HTML/JavaScript:如何停止marquee onload,并开始鼠标悬停?

我正在使用以下HTML代码来水平滚动文本:

<marquee behavior="scroll" direction="left" onmouseover="this.start();" onmouseout="this.stop();">Go on... hover over me!</marquee>
Run Code Online (Sandbox Code Playgroud)

我遇到的问题是,一旦您访问该页面,marquee开始自动滚动.我想要做的是冻结marquee直到你鼠标悬停.

html javascript scroll marquee mouseover

4
推荐指数
1
解决办法
3万
查看次数

标签 统计

html ×1

javascript ×1

marquee ×1

mouseover ×1

scroll ×1