横向菜单和滚动停止

var textMarquee = document.getElementById('textMarquee');

    function stopScroll() {
        textMarquee.stop();
    }

    function startScroll() {
        textMarquee.start();
    }


<div id="scrollingText" style="overflow: hidden; height: 50px;">
<marquee id="textMarquee" behavior="scroll" direction="up" onmouseover="stopScroll()" onmouseout="startScroll()">
    这里是循环向上滚动的文字。这里是循环向上滚动的文字。
</marquee>
本文著作权归作者 [ zealoner ] 享有,未经作者书面授权,禁止转载,封面图片来源于 [ 互联网 ] ,本文仅供个人学习、研究和欣赏使用。如有异议,请联系博主及时处理。

发表留言