ページの読み込み時に Shadowbox を開こうとしています。ここと Web で見つけた別のコードを試しましたが、動作しません。コンテナが未定義のエラーを取得し続けます...
私のコードはこちら
<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>
簡単なことですが、何が起こっているのか教えていただければ幸いです。
ありがとう