Hi I'm pretty new to the velocity side of things so any help would be
appreciated.
I'm trying to create an array of 4 images. My homepage will display a new
image everytime the page is refreshed. I know how to do this in php or
javascript but the problem is that I need the images to be controlled by the
web author in our cms system without having to edit the code hence I need to
do this in velocity.
This is what the php code would look like but I need help doing the same
thing but in velocity.
$input = array("image1.jpg",
"image2.jpg",
"image3.jpg",
"image4.jpg",
"image5.jpg");
$random = array_rand($input, 1);
echo ' '.$random.' ';;
?>
thanks in advance for the help.
W
--
View this message in context:
http://www.nabble.com/Creating-an-array-of-images-tf2750362.html#a7673614
Sent from the Velocity - Dev mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]