Ver Mensaje Individual
  #7 (permalink)  
Antiguo 24/02/2010, 14:29
SeaPirates
 
Fecha de Ingreso: enero-2009
Ubicación: España
Mensajes: 786
Antigüedad: 15 años, 3 meses
Puntos: 9
Respuesta: Pasar siguiente imagen

Código Javascript:
Ver original
  1. //función para rotar el banner
  2. function alternar_banner(){
  3. window.document["banner"].src = array_imagen[contador].src
  4. window.document['banner'].parentNode.href = array_url[contador]
  5. contador ++
  6. contador = contador % array_imagen.length
  7. setTimeout("alternar_banner()",7000)
  8. }
  9. function siguiente{
  10. contador++
  11. }
  12. </script>

asi?


Y para activar la funcion en el href:

<a href="#" onclick="siguiente()">Siguiente</a>


?¿