【发布时间】:2014-09-29 16:11:37
【问题描述】:
我正在尝试使用 wordpress 构建网站,我拥有的插件之一是帮助在图像上创建热点(54.165.58.29/dahlia/ 这是页面)。我无法让标题出现在图像的弹出显示中。
这是这里的代码。
$_ = jQuery.noConflict();
$_(document).ready(function() {
$_("a[rel=map_gallery]").fancybox({
'transitionIn' : 'none',
'transitionOut' : 'none',
'titlePosition' : 'inside',
'titleFormat' : function(title, currentArray, currentIndex, currentOpts)
{ return '<span id="fancybox-title-inside">Image ' + (currentIndex + 1) + ' of ' + currentArray.length + (title.length ? ' ' + title : '') + '</span>';
}
});
});
我已经为此耗费了好几个小时。
【问题讨论】:
标签: jquery wordpress fancybox title