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

« Next Oldest | Next Newest »

Messages In This Thread
Very Simple Random Images - RateU - 03-24-2011 06:21 AM
RE: Very Simple Random Images - harlenjoy - 12-13-2012, 10:24 AM

 Standard Tools
Forum Jump: