Tao道-博客黑洞

November 21st, 2005

wordpress随机显示的图片的又一种方式

Posted by kunstao in wordpress教程

PhotoMatt又介绍了一种[tag]wordpress[/tag]随机换图片的方法:
把模版的header换成了随机显示的图片,方法很简单,把这段代码保存成[tag]php[/tag]文件(例如rotate.php),
将rotate.php放到和图片相同的文件夹里,然后在模版里加入代码就可以了
<--img src=".../rotate.php" alt="A Random Image" /-->.

相关文章:

中文关键字:wordpress 随机 方式 图片 模版 tag 代码 方法 rotate php 文件夹 photomatt 相同 然后 简单

随机文章推荐:

One Response to ' wordpress随机显示的图片的又一种方式 '

Subscribe to comments with RSS or TrackBack to ' wordpress随机显示的图片的又一种方式 '.

  1. 无影随行 said:

    哦也,这个好,回去试试看

    November 22nd, 2005 at 9:06 am

Leave a reply

You must be logged in to post a comment.

本日推荐网站