【发布时间】:2012-10-01 23:14:11
【问题描述】:
我有多个像这样同时工作的 fancybox 实例:
<a class="grupito" href="?id=1#various1">Group 1</a>
<a class="grupito" href="?id=2#various1">Group 2</a>
<a class="grupito" href="?id=3#various1">Group 3</a>
显示如下 div:
<div style="display: none;">
<div id="various1">
//Select that shows the people from the group here depending on the id
//of the link with a $_GET['id'] variable (from database)
</div>
</div>
有了这个电话:
$("a.grupito").fancybox({
'titlePosition' : 'inside',
'transitionIn' : 'none',
'transitionOut' : 'none'
});
});
这对我不起作用。 Fancybox 提示“无法加载请求的内容。 请稍后再试。”。如果我去掉 ?id=1 的 href 部分,它会显示出来,但它不会有我需要的内容。我正在尝试使用 fancybox 吗?
编辑:事实上,用萤火虫检查它我发现我收到了 404 错误。任何人都可以指出我正确的方向,看看我如何实现这一目标?
【问题讨论】: