如何随机发布网站 [英] How Random Posting website
问题描述
如何在我的网站上随机发帖
我用Drupal cms
我想发表随机帖子,我喜欢广告图片和帖子标题
我在这里看到随机发布的示例
how to make a random posting to my website
I use Drupal cms
I want to make a random post I like the ad image and the title of my post
example here random posting I see
<script type="text/javascript" src="http://2leep.com/ticker2/2307/custom/7/1/110/bottom/transparent|black|Georgia|1.2em|0.04em|11px|900|75|1px|1px|%23c0c0c0|center|middle|square"></script>
^ ]
我想要具有随机图像rss.xml
rss.xml我的网站
http://extradll.pcboxsearch.com
我的网站
http://pcboxsearch.com/
想要在展览的extradll.pcboxsearch.com主页上的博客文章pcboxsearch.com菜单"Kupasan Extra"中使用现在,我仍然使用手动设置显示在首页上,您能给我一个解决方案吗?
Demo (Copy the Link first)[^]
I want that have the random image rss.xml
rss.xml my web site
http://extradll.pcboxsearch.com
me site
http://pcboxsearch.com/
want in a blog posting on the show''s extradll.pcboxsearch.com front page pcboxsearch.com menu "Kupasan Extra" Now I still use the manual settings to appear on the front page could you give me a solution
推荐答案
好吧,如果我正确理解了您的问题,您想从rss.xml中显示一些随机图像,对吗?
为此,获取XML文件并在集合中读取它.然后,您有项目计数.现在使用从0到Count的随机值,并将随机数据显示在您的页面上.
我认为,您将从中得到一些想法.尝试实施它,如果您需要任何帮助,请告诉我们.
Well, if I understood your problem properly, you want to show some random image from your rss.xml, Right?
For this, get the XML file and read it in a collection. Then, you have the item count. Now use random value from 0 to Count and show the random data to your page.
I think, from this you will get some idea. Try to implement it and if you need any help, let us know.
这篇关于如何随机发布网站的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!