Funzione fancybox applicata ad un elemento (e questo funziona correttamente !):
Come dovrei modificare l'hyperlink per richiamare fancybox direttamente in un tag a href senza ID ?codice:<script type="text/javascript"> jQuery(document).ready(function() { jQuery("#test").click(function() { jQuery.fancybox({ 'padding' : 0, 'autoScale' : false, 'transitionIn' : 'none', 'transitionOut' : 'none', 'title' : 'GOOGLE.IT', 'width' : (jQuery(window).width() - 100), 'height' : (jQuery(window).height() - 100), 'href' : 'http://www.google.it', 'type' : 'iframe' }); }); }); </script> GOOGLE.IT
codice:<a href=" javascript:(function(){ jQuery.fancybox({ 'padding' : 0, 'autoScale' : false, 'transitionIn' : 'none', 'transitionOut' : 'none', 'title' : 'GOOGLE.IT', 'width' : (jQuery(window).width() - 100), 'height' : (jQuery(window).height() - 100), 'href' : 'http://www.google.it', 'type' : 'iframe' }); }) ">GOOGLE.IT</a>

Rispondi quotando
