用hover而非点击触发fancybox?

当鼠标hover在链接上时,我正试图让fancybox触发。

虽然没有运气……有什么建议吗?

$(document).ready(function() { /* This is basic - uses default settings */ $("a.inline").fancybox({ 'hideOnContentClick': false }); }); 

一种方法是在触发hover事件时触发点击。

 $("a.inline").fancybox().hover(function() { $(this).click(); }); 
  $("#div a").fancybox( { 'width': '75%', 'height': '50%', 'autoScale': false, 'transitionIn': 'elastic', 'transitionOut': 'elastic', 'type': 'iframe' }).hover(function () { $(this).click(); });