Ver Mensaje Individual
  #2 (permalink)  
Antiguo 29/02/2012, 02:08
Avatar de repara2
repara2
 
Fecha de Ingreso: septiembre-2010
Ubicación: München
Mensajes: 2.445
Antigüedad: 13 años, 7 meses
Puntos: 331
Respuesta: modificar funcion anterior siguiente

Código PHP:
Ver original
  1. function getPrev($c, $pics)
  2. {
  3.     if(1 == $c) return "<<";
  4.     if($c <= count($pics)) return $c - 1;
  5.     elseif($c == count($pics)) return $c;
  6. }
  7.  
  8. function getNext($c, $pics)
  9. {
  10.     if($c < count($pics)) return $c + 1;
  11.     elseif($c == count($pics)) return ">>";
  12. }
__________________
Fere libenter homines, id quod volunt, credunt.