Url Fancybox在标题中使用超链接

Url Fancybox在标题中使用超链接,url,fancybox,title,Url,Fancybox,Title,花了几个小时试图将一个基本的url链接转换成fancybox标题,我添加了HTML供参考 title="<a href="/contactus">Order Now</a> - Title description" 我真的以为我把它弄丢了一件如此简单和基本的事情 希望这对你的fancybox有帮助({ $(".class_of_your_fancybox").fancybox({ 'showC

花了几个小时试图将一个基本的url链接转换成fancybox标题,我添加了HTML供参考

title="<a href="/contactus">Order Now</a>  - Title description"
我真的以为我把它弄丢了一件如此简单和基本的事情 希望这对你的fancybox有帮助({
$(".class_of_your_fancybox").fancybox({
    'showCloseButton' : false,
    'titlePosition'   : 'inside',
    'titleFormat'     : "<a href="/contactus">Order Now</a> - Title description"
});
“showCloseButton”:false, “标题位置”:“内部”, “标题格式”:“-标题说明” });

因此,我的示例不是正确的方法,会给其他人带来错误

Derek的示例失败了,但我最接近标题栏中的链接的是以下内容:

$(".fancybox").fancybox({
    afterLoad: function() {
        this.title = '<a href="' + this.href + '">Download</a> ' + this.title;
    },
    helpers : {
        title: {
            type: 'inside'
        }
    }
});
$(“.fancybox”).fancybox({
后加载:函数(){
this.title=''+this.title;
},
助手:{
标题:{
类型:“内部”
}
}
});
它适用于HTML:

<a rel="gallery" title="Link1" class="fancybox" href="5_b.jpg"><img src="1_s.jpg" alt=""/></a>


但是它链接到图像而不是所需的url链接

那么问题是什么呢?谢谢Derek!已设法获取“$(“.fancybox”).fancybox({afterLoad:function(){this.title=''+this.title;}),帮助程序:{title:{type:'inside'}}}}});'工作,但你的例子没有任何想法