如何随机发布网站 [英] How Random Posting website

查看:116
本文介绍了如何随机发布网站的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何在我的网站上随机发帖
我用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>





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屋!

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