Ver Mensaje Individual
  #2 (permalink)  
Antiguo 14/11/2003, 13:43
Avatar de Thebrain
Thebrain
 
Fecha de Ingreso: enero-2003
Ubicación: Santiasco
Mensajes: 100
Antigüedad: 22 años
Puntos: 0
lo primero que se me viene a la mente es que las imagenes tenga como nombre imagen1.jpg, imagen2.jpg, imagen3.jpg

poner un codigo como este

Código:
<cfif isdefined("URL.foto")>
<cfparam name="url.foto" default="1">
<cfset antes = URL.foto - 1>
<cfset despues = URL.foto + 1>

<cfoutput>
<table width="25%" border="0" align="center">
<tr>
<td><a href="galeria.cfm?foto=#antes#">Anterior</a></td>
<td><div align="center">Imagen#URL.foto#</div></td>
<td><a href="galeria.cfm?foto=#despues#">Siguiente</a></td>
</tr>
<tr>
<td> </td>
<td><img name="fotoInteractiva" src="imagen#URL.foto#.jpg" width="250" height="200" alt=""></td>
<td> </td>
</tr>
</table>
</cfoutput>

<cfelse>
   el index de la galeria
</cfif>
para ver si el archivo existe o no podrias usar la opcion fileExists y el archivo de la galeria seria galeria.cfm y para las fotos seria galeria.cfm?foto=1 y asi subiendo hasta el numero total de archivos en el directorio

en esta direccion hay varios tutoriales para crear galerias dinamicas http://www.easycfm.com/tutorials/index.cfm?dirView=True

y existe un custom tag llamado CF_Gallery que tambien te puede servir
__________________
I'm sick of all you hypocrites holding me at bay And I don't need your sympathy to get me through the day.Dream Theater - A Change of Seasons

http://www.dreamtheater.cl