FancyBox gatillo con vuelo estacionario en lugar de hacer clic?
Pregunta
Estoy intentando conseguir FancyBox para disparar cuando el ratón sobre un enlace.
no han tenido suerte, aunque ... alguna sugerencia?
$(document).ready(function() {
/* This is basic - uses default settings */
$("a.inline").fancybox({ 'hideOnContentClick': false });
});
Solución
Una forma sería para disparar el clic cuando se activa el evento vuelo estacionario.
$("a.inline").fancybox().hover(function() {
$(this).click();
});
Otros consejos
$("#div a").fancybox(
{
'width': '75%',
'height': '50%',
'autoScale': false,
'transitionIn': 'elastic',
'transitionOut': 'elastic',
'type': 'iframe'
}).hover(function () {
$(this).click();
});
Licenciado bajo: CC-BY-SA con atribución
No afiliado a StackOverflow