带 div 的 Marquee 插件

发布于 2024-07-23 13:22:21 字数 371 浏览 5 评论 0原文

我正在尝试将 marquee 插件与 div 一起使用,但我不知道该怎么做。

如果您访问我的测试页面此处,您会发现虽然有两个缓慢移动的 div,但其中一个左边一个,右边一个,如果你继续等待,它们就会逐渐从页面上消失。

我认为使用 Marquee 插件,我可以解决这个问题,但我没有成功使用此代码,因为该插件似乎没有很好地记录。

$('#lightright').marquee(5);
$('#lightleft').marquee(5);

为什么这段代码不起作用?

I am trying to use the marquee plugin with a div but i can't figure out how to do it.

If you visit my testing page here you will see that although there are two slowly moving divs, one to the left, and one to the right, if you continue to wait, they gradually disappear off the page.

I think that using the Marquee plugin, I can fix this but I have no success with this code as the plugin does not seem to be documented very well.

$('#lightright').marquee(5);
$('#lightleft').marquee(5);

Why does this code not work?

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

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

发布评论

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

评论(1

烟织青萝梦 2024-07-30 13:22:21

您可以按照上一个问题的回答来解决您的问题:如何让div无限移动?

You can solve your problem as answered on your previous question here: How to make infinite movement of a div?

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