Skip to content

Shadowbox is not defined #45

@Prozac2000

Description

@Prozac2000

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>

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions