|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
||||
|
||||
|
Random Image
Does anyone know of a script that, using ColdFusion, makes it so a random image is chosen out of a specified folder and displayed?
Thanks. ![]() |
|
#2
|
|||
|
|||
|
I'm not aware of one, but it seems that you could read the directory using cfdirectory, then once you know how many images there are, generate a random number between 1 and the total number of images, and display that one.
__________________
Ask if you have a question, but also help answer questions that you have knowledge of! Thanks, Brian. How to Post a Question in the Forums |
|
#3
|
||||
|
||||
|
I found this but he doesn't really go into any sort of detail...
http://www.teratech.com/coldcuts/cutdetail.cfm?cutid=97 |
![]() |
| Viewing: Dev Shed Forums > Programming Languages - More > ColdFusion Development > Random Image |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|