简体   繁体   English

如何打开fancybox内容内的链接URL?

[英]How to open link url inside fancybox content?

Im using fancybox 2.1.5 and my html and js looks like this: 我正在使用fancybox 2.1.5,我的html和js如下所示:

<a href="new-window" class="wrap">
   any content
   <a href="google.com" target="_blank">go google it</a>
</a>


$('.wrap').fancybox();

And the question is how to open only google link by click on it instead of whole fancybox modal window. 问题是如何通过单击它而不是整个fancybox模态窗口来打开google链接。 now it opens url and modal, which is not right. 现在,它会打开url和modal,这是不对的。 click out of google link should open as fancybox. 点击退出Google链接应以fancybox打开。

Many thanks for any help 非常感谢任何帮助

On my experience from the last project, i used php check this example: 根据我上一个项目的经验,我使用php检查以下示例:

<?php 

echo '<td><div align="center"><a rel="facebox" href="vieworders.php?id='.$row['confirmation'].'" title="Click To View Orders" style="color:#FCFEFF">View Orders</a>';

?>

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM