Google Chrome でシャドウボックス 3.0.3 を使用しようとしています
私は得ています:
クロームで
shadowbox.js:17 Uncaught TypeError: 未定義のプロパティ 'style' を読み取れません
ファイアフォックスで
F は未定義 g.find=(function(){var aD=/((?:((?:(...()}};g.skin=k;T.Shadowbox=g})(window); shadowbox.js (17 行目)
IEでは問題なく動作するようです
私のコードは以下の通りです:
<!doctype html>
<html>
<head>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.4.4/jquery.js"></script>
<script src="shadowbox.js"></script>
<link href="shadowbox.css" rel="stylesheet"/>
<script>
$(function() {
Shadowbox.init({skipSetup: true});
// open a welcome message as soon as the window loads
Shadowbox.open({
content: '<div id="welcome-msg">Welcome to my website!</div>',
player: "html",
title: "Welcome",
height: 350,
width: 350
});
})
</script>
</head>
<body>
</body>
</html>
何が原因でしょうか?