Prettyphoto javascript打开空白页面,其中包含' false'在Firefox中

时间:2014-03-05 20:45:11

标签: javascript xml flash firefox prettyphoto

我正在使用此点击功能在iframe模式下打开prettyphoto:

$(document).ready(function(){
    $.fn.prettyPhoto();
  $('a').click(function(){
     window.$.prettyPhoto.open($(this).attr('src'), $(this).attr('title'), attr('desc'));

   social_tools: false

      return false;
  });
});

并将其称为:

a href="javascript:$.prettyPhoto.open('http://mypage.com?iframe=true=true&width=820&height=700', 'title', 'desc'');">test</a>

在Chrome和Safari中运行良好但在Firefox中我得到一个空白页面,在地址栏中显示单词'false'和完整网址'javascript:$。prettyPhoto.open('http://mypage.com?iframe=true=true&width=820&height=700'。

我使用'click'功能受到限制,因为该链接位于Flash的xml中,而Flash不支持rel属性。我很确定这在Firefox中以前有用,所以我认为这可能只是我最近下载的最新版本中的一个问题。

有人可以帮忙吗? :)

0 个答案:

没有答案