jquery 横幅,在随机位置带有随机引号

发布于 2024-12-07 02:01:19 字数 106 浏览 4 评论 0原文

我正在寻找一个 jquery 脚本,它将随机加载各种引号并加载到图像(横幅)上的随机位置。我知道这是一个模糊的问题,但我不知道如何实现它,我正在寻找一些东西来开始。

I'm looking for a jquery script that will load various quotes randomly and into random positions over an image (banner). I know this is a vague question but I don't know how it can be achieved and I'm looking for something to begin with.

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

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

发布评论

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

评论(1

优雅的叶子 2024-12-14 02:01:19

也许是个愚蠢的想法,但是您考虑过使用标签云吗?有几个现成的插件可用(例如此处此处这里和许多其他)。这不是云的用途,但如果您使用引号作为标签并赋予它们相同的权重,它可能会为您提供您正在寻找的视觉布局并节省一些工作(显然关闭所有动画)。然后可以将 div 的样式设置为位于图像上。

只是一个想法。

Maybe a daft idea, but have you considered using a tag cloud? There are several ready-made plugins available (e.g. here, here, here and many others). It's not what a cloud is meant for, but if you used your quotes as tags and gave them all the same weighting it might give you the visual layout you are looking for and save some work (obviously switch any animations off). The div could then be styled to position over your image.

Just an idea.

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