Shadowbox 容器未定义错误
我试图在页面加载时打开 Shadowbox,我尝试了在此处和网络上找到的不同代码,但无法使其工作。不断收到容器未定义的错误...
这是我的代码
<link href="js/shadowbox-3.0.3/shadowbox.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="http://code.jquery.com/jquery-1.4.3.js"></script>
<script type="text/javascript" src="js/shadowbox-3.0.3/shadowbox.js"></script>
<script type="text/javascript">
Shadowbox.init({
language: "en",
players: ["img"]
});
$('document').ready(function() {
Shadowbox.open({
content: "images/popup_sd.png",
player: "img",
title: "Welcome",
height: 403,
width: 744
});
});
</script>
足够简单...任何人都可以告诉我发生了什么事吗,将不胜感激。
谢谢
I'm trying to open Shadowbox on page load, i've tried different code i found here and on the web but cant get it to work. Keep getting a container is undefined error...
Heres my code
<link href="js/shadowbox-3.0.3/shadowbox.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="http://code.jquery.com/jquery-1.4.3.js"></script>
<script type="text/javascript" src="js/shadowbox-3.0.3/shadowbox.js"></script>
<script type="text/javascript">
Shadowbox.init({
language: "en",
players: ["img"]
});
$('document').ready(function() {
Shadowbox.open({
content: "images/popup_sd.png",
player: "img",
title: "Welcome",
height: 403,
width: 744
});
});
</script>
Simple enough... can anyone tell me whats going on please, would be very appreciated.
Thanks
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论