【发布时间】:2011-12-08 19:57:04
【问题描述】:
我正在尝试使用 shadowbox.js 在当前网页顶部打开图像。但是,当我单击链接时,它会将我带到我的图像,并且下面的页面会转到空白页面。有谁知道如何在将当前页面保留在下面的同时打开 shadowbox?
这是我的代码:
<head>
<script src="shadowbox-3.0.3/shadowbox.js" type="text/javascript"></script>
<link rel="stylesheet" href="shadowbox-3.0.3/shadowbox.css" type="text/css">
</head>
<body onload="Shadowbox.init();">
<table>
<tr>
<td><a href="ss1.jpg" rel="shadowbox[screenshots]">image #1</a></td>
<td><a href="ss2.jpg" rel="shadowbox[screenshots]">image #1</a></td>
<td><a href="ss3.jpg" rel="shadowbox[screenshots]">image #1</a></td>
</tr>
</table>
</body>
【问题讨论】:
-
还没有...我还有其他的 javascript(jquery 移动 js 和 css 文件),我也调用它们导致 shadowbox 搞砸了。
-
你有没有找到问题所在,我使用fancybox和jquery mobile也遇到了同样的问题
标签: javascript html css shadowbox