2013-05-02 121 views
0

我正在使用fancybox弹出式菜单,在点击国家/地区时使用raphael脚本构建欧洲地图,它显示iframe在新窗口中打开iframe(fancybox)的链接

点击iframe内部的链接时,在iframe内打开的新页面,但我想在新窗口中打开链接。

这里我对拉斐尔的脚本:

greek[state].click(function(){ 
    $j.fancybox({ 
    'showCloseButton': true, 
    'href' : 'link.html', 
    'width' : 500, 
    'height' : 350, 
    'type' : 'iframe' 
    }); 
}); 

的link.html文件是:

<a onclick="window.open(this.href,'','resizable=yes,location=no,menubar=no,scrollbars=yes,status=no,toolbar=no,fullscreen=no,dependent=no,width=400,height=500,left=350,top=250,status'); return false" href="http://www.test.com"><img src="test-simotas.jpg" width="447" height="314"/></a> 

我无法找到一个解决方案。

你有什么想法吗?提前致谢。

回答

0

也许这将工作:

<a 
onclick="window.open(this.['data-href'], 
    '','resizable=yes,location=no,menubar=no,scrollbars=yes,status=no, 
    toolbar=no,fullscreen=no,dependent=no,width=400,height=500,left=350, 
    top=250,status'); return false" data-href="http://www.test.com" 
    href="javascript:return false;"> 
+0

由于它的工作原理,但我不得不改变这样 user2343308 2013-05-03 06:18:11

0

由于它的工作原理,但我不得不改变:

<a onclick="window.open(this.['data-href'],'','resizable=yes,location=no,menubar=no,scrollbars=yes,status=no,toolbar=no,fullscreen=no,dependent=no,width=400,height=500,left=350,top=250,status'); return false" data-href="http://www.simotas.gr" href="http://test.com" target="_blank"><img src="test-simotas.jpg" width="447" height="314"/></a>