Ver Mensaje Individual
  #14 (permalink)  
Antiguo 29/03/2012, 12:09
Avatar de mazaku
mazaku
 
Fecha de Ingreso: septiembre-2009
Ubicación: Veracruz
Mensajes: 104
Antigüedad: 14 años, 8 meses
Puntos: 0
Respuesta: Visor de imagen evitar mostrar primera imagen

Gracias por la ayuda madhatterdef, pero termine resolviendolo de esta forma

Cita:
var images = [<?php

if(is_dir($dir)){
$arreglo = scandir($dir);
foreach($arreglo as $file){
if($file != '.' && $file != '..' && $file != "Thumbs.db"){
if($i==0)
$firstpic=$file;
$i++;
$filenames .= "'".$file."', ";
}
}
echo substr($filenames, 0, -2);
}

?>];
y mostrando la imagen asi

Cita:
<img style="CURSOR: hand" src="<?php echo $dir; ?><? echo $firstpic; ?>"name="show" class="img">
muchas gracias por tu ayuda