我想为我的网站提供自动文字? [英] I want automated text for my website?

查看:67
本文介绍了我想为我的网站提供自动文字?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一系列的报价,我希望他们在用户浏览网站时自动更改qoute我将如何进行此操作?



我尝试了什么:



我不知道如何开始使用这个想法,所以还没有。

解决方案

你正在寻找的是一个随机文本选择器。



当我搜索它时谷歌提出了这个问题:选择随机LI元素 [ ^ ]



如果是我,我会查看代码,看看它是如何工作的然后用它来修补它。然后我会看看是否可以滥用 jquery / javascript解析DOM的能力,并将随机内容放在不可见的元素中(可能通过CSS和UL-LI)。



一旦我的技能发展,我会将数据放入外部文件(content1,content2)并使用相同的随机生成器选择其中一个外部文件来获取随机内容。 / BLOCKQUOTE>

I have a selection of quotes and i want them to automatically change qoute whilst the user is browsing the site how would i go about this?

What I have tried:

I have no idea how to get started with this idea so nothing as of yet.

解决方案

What you are looking for is a Random Text Selector.

Google brought this up when I searched for it: Select Random LI element[^]

If it were me, I would go through the code and see how it works, then tinker around with it. I would then see if I could abuse the ability of jquery/javascript to parse the DOM and place the random content in non-visible elements (probably via CSS and a UL-LI).

Once my skills developed, I would put the data into external files (content1, content2) and use that same random generator to select one of them external files to get the random content.


这篇关于我想为我的网站提供自动文字?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆