Hover Over to Pause Marquee

前端 未结 7 2075
无人及你
无人及你 2021-01-08 00:29

I want to create a Marquee that scrolls some news articles but when the user hovers over it I need it to pause and when the user hovers out of it (onMouseOut) I need to ti s

7条回答
  •  北海茫月
    2021-01-08 00:39

    You can simply use the HTML marquee markup with

    onmouseover="stop()"
    

    followed by

    onmouseout="start()"
    

提交回复
热议问题