需要选取框文本,但我们可以在鼠标悬停时停止

发布于 2024-08-10 14:08:18 字数 1437 浏览 3 评论 0原文

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

蹲在坟头点根烟 2024-08-17 14:08:18

尝试 marquee jQuery 插件。

$('#some-id').marquee().mouseover(function () { 
      $(this).trigger('stop');
   }).mouseout(function () {
      $(this).trigger('start');
   });

Try the marquee jQuery plugin.

$('#some-id').marquee().mouseover(function () { 
      $(this).trigger('stop');
   }).mouseout(function () {
      $(this).trigger('start');
   });
甲如呢乙后呢 2024-08-17 14:08:18

为什么你不能使用 html marquee 本身?这是一个非常简单的解决方案,使用纯 JavaScript。

<marquee direction="left" width="750" height="25" scrollamount="3" scrolldelay="10" 
    onmouseover="this._scrollAmount='0'" onmouseout="this._scrollAmount='3'">
Website Hits crossed 1.1 Million, Since 1st March 2006.
</marquee>

这会有帮助吗?

Why can't your use html marquee itself? Its very simple solution with plain javascript.

<marquee direction="left" width="750" height="25" scrollamount="3" scrolldelay="10" 
    onmouseover="this._scrollAmount='0'" onmouseout="this._scrollAmount='3'">
Website Hits crossed 1.1 Million, Since 1st March 2006.
</marquee>

Will this help?

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文