Campus Map/Tour Request Information Employment A-Z Index Directories
EDU Site
A Bold Heart Centennial Campaign

Detail

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')

##Execute the macro, which loads a random image 
##into $image and adds the file extension. 
##You don't need to change these lines of code
#randomImage($path)
#set ($pic="/dotAsset/" + "$image.identifier" + ".jpg")

##Display the image by standard HTML
##You can set the size and so on.
<img src="$pic" width="300px" alt="Random Image" />​

Random Image Looks Like This:

Random Image




See it in action on a Marywood Department site!



All comments to webber@marywood.edu | Immaculata Hall, 90 | 570-348-6211 x2340