not finding shadowbox directory

4 messages Options
Embed this post
Permalink
crane

not finding shadowbox directory

Reply Threaded More More options
Print post
Permalink
hi,
new user.
if I type the directory shadowbox.js is in
then the box appears but the link loads the google page but not in a shadowbox.
If I don't type in the directory the box doesn't appear and the link doesn't open a box.

what's wrong ?

this is on my local drive and my test server.

--------------
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>test</title>
<link rel="stylesheet" type="text/css" href="./shadowbox/shadowbox.css">
<script type="text/javascript" src="./shadowbox/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>
<body>
Click
</body>
</html>
---------------------------
regards

mick
crane

Re: not finding shadowbox directory

Reply Threaded More More options
Print post
Permalink
there is a </head> missing in the above but it is in the html I'm using
Wizzud

Re: not finding shadowbox directory

Reply Threaded More More options
Print post
Permalink
In reply to this post by crane
You've got skipSetup set to true so nothing is going to happen when clicking any links unless you specifically make it happen.
If your link to google.com.com(?) has a rel attribute for Shadowbox activation (which I can't tell), nothing will happen even of you take the skipSetup:true configuration away, because you need to configure the 'iframe' player in order to get web pages to display in Shadowbox...
Shadowbox.init({players:['html', 'iframe']});
Combine literacy with curiosity and a whole world of information opens up to you
crane

Re: not finding shadowbox directory

Reply Threaded More More options
Print post
Permalink
thanks, it's working now.