Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

206
Vistas
¿Cómo puedo desvanecer un img y luego desvanecerse en otro?

Así que estoy usando jQuery para aparecer y desaparecer gradualmente, pero me encontré con el problema de que, cuando ejecuto el código, la img se desvanece pero la misma img vuelve a aparecer. Estoy atascado.

Aquí está el código

$(documento).listo(función() {

 // preload the image for each link $("#image_list a").each(function() { var swappedImage = new Image(); swappedImage.src = $(this).attr("href"); }); //------------------------- // set up the event handlers for each link $("#image_list a").click(function(evt) { // alert($(this).attr("title")) $("#image, #caption").fadeOut(3000, function(){ $("#image").attr("src", $(this).attr("href")); $("#caption").text($(this).attr("title")); }); $("#image, #caption").fadeIn(3000); evt.preventDefault(); }); // get the image URL and caption for each image and animate the caption // cancel the default action of each link // move the focus to the first link

}); // terminar listo

about 4 years ago · Juan Pablo Isaza
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda