来自fancybox的外部链接无效

时间:2014-06-23 10:04:18

标签: php jquery html fancybox

PHP

$profile_url = $vars['url'].'pg/profile/'.$user->username;

HTML

<div style='float:left;margin-top:8px;margin-right:-3px;'><a href='#edit_profile' class='apply_alert' id='{$job_id}'><span class='apply_button'></span></a></div>

<div id="edit_profile">
    <div style="background:#fff;height:100%;border:1px solid #1583D0;">

        <div style="padding:20px 10px 10px;">
            <a style="text-decoration:none;" href="<?php echo $profile_url?>" class="profile_btn button-blue">Edit profile</a>
        </div>

    </div>
</div>

SCRIPT

$(".apply_alert").fancybox({
        'titlePosition' : 'inside',
        'transitionIn' : 'none',
        'transitionOut' : 'none',
        'frameWidth'  : 420,           // set the width
        'frameHeight' : 175
        }); 

我有一个fancybox。在里面,我添加一个按钮的链接。

我面临的问题是我在fancybox中使用锚标签引用的网址无法正常工作。当我点击按钮时,弹出窗口正在逐渐消失。怎么解决这个问题。

1 个答案:

答案 0 :(得分:0)

好的,我发现解决方案只是在您的fancybox脚本中将hideOnContentClick设置为false ...此处可以使用...

相关问题