An error somewhere in the shadobox.js

3 messages Options
Embed this post
Permalink
McFly

An error somewhere in the shadobox.js

Reply Threaded More More options
Print post
Permalink
shadowbox.js is confuscated, so i can not point exact place of error, but in every browser it does not work

i've even done siple thing, copied a example from "Usage" link, made the file test.html and putted it in the directory with Shadowbox. Result was the same.


the link: http://www.jetterauto.ru/cms/scripts/shadowbox/build__/test.html
the copied example was:


<link rel="stylesheet" type="text/css" href="shadowbox.css">
<script type="text/javascript" src="shadowbox.js"></script>
<script type="text/javascript">
Shadowbox.init({
    // let's skip the automatic setup because we don't have any
    // properly configured link elements on the page
    skipSetup: true,
    // include the html player because we want to display some html content
    players: ["html"]
});

window.onload = function(){

    // 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>
otheroom

Re: An error somewhere in the shadobox.js

Reply Threaded More More options
Print post
Permalink
You do need to have that code appear within an HTML page so the browsers know what to do with it.
McFly

Re: An error somewhere in the shadobox.js

Reply Threaded More More options
Print post
Permalink
But the "obj is undefined" in shadowbox.js is still appear, and I just don't understand what I have to do.