jquery 横幅,在随机位置带有随机引号
我正在寻找一个 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 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
也许是个愚蠢的想法,但是您考虑过使用标签云吗?有几个现成的插件可用(例如此处,此处,这里和许多其他)。这不是云的用途,但如果您使用引号作为标签并赋予它们相同的权重,它可能会为您提供您正在寻找的视觉布局并节省一些工作(显然关闭所有动画)。然后可以将 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.