![Antiguo](http://static.forosdelweb.com/fdwtheme/images/statusicon/post_old.gif)
01/08/2006, 22:23
|
![Avatar de jesusbet](http://static.forosdelweb.com/customavatars/avatar63600_0.gif) | (Desactivado) | | Fecha de Ingreso: mayo-2004 Ubicación: Monterrey, MX
Mensajes: 2.667
Antigüedad: 20 años, 9 meses Puntos: 2 | |
con php suelo hacerlo así:
$total_cab = 20 // aqui pones el total de archivos, por ejemplo; también puedes hacer una función que cuente los archivos de una carpeta y que escoja una de ahí, pero yo suelo hacerlo así
$num_cab = rand(0,$total_cab);
print "
<img src=\"cabecera".$num_cab.".jpg\" />
";
y ya...
" |