我试图移动 youtube 上的“关闭”按钮。每当我尝试添加如下代码时:
'onComplete': function(){
   $("#fancybox-close").css({"opacity":"0.5"});
}
该链接直接指向 Youtube,而不是在模态框中播放。
有什么建议么?

HTML:
<a class="fancybox-media" href="http://www.youtube.com/watch?v=sqRPrGeBVL0&autoplay=1&autohide=1" >Youtube</a>
Javascript:
$(function(){
$("a.fancybox-media").click(function() {
     $.fancybox({
          'padding'             : 0,
          'autoScale'   : false,
          'transitionIn'        : 'none',
          'transitionOut'       : 'none',
          'title'               : this.title,
          'width'               : 680,
          'height'              : 495,
          'autoPlay'            :'true',
          'href'                : this.href.replace(new RegExp("watch\\?v=", "i"),
                                      'v/'),
          'type'                : 'swf',    // <--add a comma here
          'swf'                 : {'allowfullscreen':'true'} // <-- flashvars here
       });
       return false;
  });
 });
笔记 -