Random Image
-
The Jakarta script displays an image at the bottom of each post, using this code:
<center><img src=”<?php bloginfo(‘stylesheet_directory’); ?>/images/hr.gif” alt=”The End”/></center>Does anyone know of any way to display one of n images (hr1.gif, hr2.gif, hr3.gif, etc)
What that would require was taking some index number and doing a “modulo” function, for example if I had three different images hrmodulo(index,3).gif would get it, but I dont know enough about php to know how to code that. Can anyone help me?
Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
- The topic ‘Random Image’ is closed to new replies.