Html Javascript Css Php Flash

Bienvenidos a la pagina de ayuda en codigos !!

Html Javascript Css Php Flash
Cambia imagen cada 5 segundos
* E-mail:
* Password:
Registrarse Presentación Miembros Imágenes
¿Has olvidado tu Password?

Lista de mensajes
Autor Mensaje
Andrea
 
Mensajes: 3
Registrado: Marzo/2008
Estado: Off-line
Grupo: Nuevo usuario
 
 
  Cambia imagen cada 5 segundos 19/Marzo/2008 - 16:54

<script language="JavaScript">
<!-- hide from other browsers 

//Pictures to switch inbetween

var Rollpic1 = "img22.jpg";
var Rollpic2 = "img23.jpg";
var Rollpic3 = "img24.jpg";


//Start at the what pic:
var PicNumber=1;
//Number of pics:
var NumberOfPictures=3;
//Time between pics switching in secs
var HowLongBetweenPic=5;

//SwitchPic Function
function SwitchPic(counter){

 if(counter < HowLongBetweenPic){
 
  counter++;
  
  //DEBUG in the status bar at the bottom of the screen
  window.status="Cambia imagen cada 5 segundos : "+counter+" - Imagen nº: "+PicNumber+" ";
  
  //Display pic in what <IMG> tag roll is what I called the image
  document.roll.src = eval("Rollpic" + PicNumber);
  
  //function calls itself
  CallSwitchPic=window.setTimeout("SwitchPic("+counter+")",500);
  
  }
  
  else{
   //if its not the last picture goto the next picture
   if(PicNumber < NumberOfPictures){
    PicNumber++;
    SwitchPic(0);
   }
   //its the last picture go to the first one
   else{
    PicNumber=1;
    SwitchPic(0);
    }
 
  }

}
// Stop hiding from old browsers -->
</script>


Usuarios activos
2 usuarios activos: 0 miembros y 2 huespedes en el foro.
 Reglas de mensaje
puedes escribir nuevos temas
puedes responder a los temas
puedes adjuntar archivos
no puedes editar tus mensajes
Contactar con el Administrador del foro.

La utilización del servicio vendrá condicionada por la previa aceptación de las Condiciones Generales de Uso del Servicio.



Foro gratis creado en ForosWebGratis.com. Crea tu propio foro aquí.