Shadowbox 故障排除
大家好,我正在尝试让 Shadowbox 正常工作。每当我单击该链接时,它都会在新页面中打开电影。这是 head 标签中的代码:
<script type="text/javascript" src="http://code.jquery.com/jquery-latest.pack.js"></script>
<link rel="stylesheet" type="text/css" href="shadowbox.css">
<script type="text/javascript">
Shadowbox.init({
players: ["qt"];
});
</script>
这是 body 部分中的代码:
<div id="footer">
<a rel="shadowbox;width=640;height=360" href="Intro Movie.mov">Movie</a>
</div>
有人发现任何问题吗?
Hey guys, I'm trying to get Shadowbox to work. Whenever I click the link, it just opens the movie in a new page. Here's the code in the head tags:
<script type="text/javascript" src="http://code.jquery.com/jquery-latest.pack.js"></script>
<link rel="stylesheet" type="text/css" href="shadowbox.css">
<script type="text/javascript">
Shadowbox.init({
players: ["qt"];
});
</script>
And here's the code in the body section:
<div id="footer">
<a rel="shadowbox;width=640;height=360" href="Intro Movie.mov">Movie</a>
</div>
Does anyone see any problems?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
JSON 设置对象中不应包含分号,如下所示:
You shouldn't have a semicolon in your JSON settings object, like this:
您似乎缺少实际的 Shadowbox.js 文件。尝试在 Shadowbox.css 链接定义下面添加类似的内容:
It looks like you are missing the actual Shadowbox.js file. Try adding something like this below your shadowbox.css link def: