开发者

Shadowbox troubleshooting

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.i开发者_运维问答nit({
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?


It looks like you are missing the actual Shadowbox.js file. Try adding something like this below your shadowbox.css link def:

<script type="text/javascript" src="shadowbox.js"></script>


You shouldn't have a semicolon in your JSON settings object, like this:

Shadowbox.init({
players: ["qt"]
});
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜