Thread Rating:
  • 2 Votes - 4 Average
  • 1
  • 2
  • 3
  • 4
  • 5
 Very Simple Random Images
RateU Offline
Administrator
*******
Posts: 2,350
Joined: Mar 2010
Post: #1
Very Simple Random Images
Put this code in our templates (where we want the random images will be displayed):

Code:
<img src="images/rand_images/<?=mt_rand(1,9)?>.png" alt="" />

Now, upload 1.png, 2.png, 3.png ..... 9.png to our images/rand_images folder.

That's our very basic and simple random images using Template Conditionals or PHP in Templates / Complex Templates plugin.
Just modify it as our needs.


03-24-2011 06:21 AM
Find all posts by this user Quote this message in a reply
harlenjoy Offline
Junior Member
**
Posts: 2
Joined: Dec 2012
Post: #2
RE: Very Simple Random Images
Hello! I would like to ask how can I add a url on every image. I would like to use it on my affiliate system. Your help is greatly appreciated. Thank You!
12-13-2012 10:24 AM
Find all posts by this user Quote this message in a reply

« Next Oldest | Next Newest »

 Standard Tools
Forum Jump: