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

123
Vistas
use title attribute for caption with fancybox4

Using fancybox4 would it be possible to use the title attribute as a caption?

<a href="aaaa.jpg" title="Image 1" rel="lightbox[aaa]"><img src="aaa.jpg" alt="alt image 1"></a>

Fancybox.bind("a[rel^=lightbox]", {
  groupAll : true,
  caption: ........
});

Example here: https://jsfiddle.net/eh2q3zr0/

about 4 years ago · Juan Pablo Isaza
1 Respuestas
Responde la pregunta

0

I solved it by changing the caption option:

Fancybox.bind("a[rel^=lightbox]", {
  groupAll : true,
  caption: function(fancybox, carousel, slide) {
    return slide.$trigger.title || '';
  }
});
about 4 years ago · Juan Pablo Isaza Denunciar
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