Random Image

Use this code to randomly display images from a specific folder on your page. Each time the page loads, a new photo will randomly be selected and placed on your page.

Copy This Code

##Set the path in the statement below
#set ($path = '/alumni/pictures/home/')

##This executes the macro
#randomImage($path)

##This displays the image
<img src="$image.URI" class="${mobileclass}centercolimg" />​

Random Image Looks Like This:

See it in action on a Marywood Department site!