mjackson / shadowbox

A beautiful, versatile lightbox for photos and videos
http://shadowbox-js.com/
297 stars 110 forks source link

Shadowbox is not defined #45

Open Prozac2000 opened 9 years ago

Prozac2000 commented 9 years ago

Shadowbox is not defined error when i call Shadowbox.init() why?

the code:

<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>Documento senza titolo</title>
<script type="text/javascript" src="shadowbox/shadowbox.js"></script>
<link href="shadowbox/shadowbox.css" rel="stylesheet" type="text/css">
</head>
<body>
<a rel="shadowbox" href="promo.jpg">Clicca qui</a>
</body>
</html>
<script language="javascript">

    Shadowbox.init();
    Shadowbox.open(img, { player: 'iframe' });

</script>
stevensmith007 commented 9 years ago

Same issue here.

emnbdx commented 9 years ago

because it's shadowbox not Shadowbox

chatis commented 8 years ago

Not working in lowercase too

jcf2167 commented 8 years ago

Did anyone ever end up finding a solution to this problem? I have the same situation.

hrkisk commented 8 years ago

old Shadowbox.init seems not working anymore. there is no "init" method in default shadowbox.js file, there is initialize byt that is not working when call instead of old "init".

then i tried to use this: shadowbox({handleOversize:"drag", language: 'en', players: ['html','iframe']});

it worked for me