Shadowbox 2.0 setup

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Shadowbox 2.0 setup

vree
I cannot get Shadowbox setup properly - looking for tips/help
www.groundworkssoftware.com/gallery_template.html

Any help would be appreciated.
Reply | Threaded
Open this post in threaded view
|

Re: Shadowbox 2.0 setup

Zwink
Hey,

The header of your page looks incorrect;  try modifying the following:

You have "./shadowbox/" for the links in the header... either make them "../shadowbox/..." or "shadowbox/..." as necessary... the single "./" is probably screwing the links up.

Also in the script, it should just say

<script type="text/javascript"> Shadowbox.init(); </script>
Reply | Threaded
Open this post in threaded view
|

Re: Shadowbox 2.0 setup

Wizzud
This post was updated on .
In reply to this post by vree
As Zwink has implied, your included files are (a) wrong, eg. not found, and (b) incomplete.

First, look at the documentation.

Getting started, the simplest way is not to use a full library, but just use the shadowbox-base.

Second, make sure you know where all the files that you need to include are located in your webspace, and construct the src or href paths correctly so that they can be found.

As per the documentation, make sure you have included all the requisite files, and in the right order.

Eg. using base, you need to include...

Script:
  adapter/shadowbox-base.js
  shadowbox.js

Then you need the skin, a language, and player(s)...

Script:
  skin/classic/skin.js
  lang/shadowbox-en.js
  player/shadowbox-image.js

Stylesheet:
  skin/classic/skin.css

Obviously, you need to construct the src/href for each of these according to whereabouts they are in your folder structure!

With these files successfully included, you can then simply use the window.onload=Shadowbox.init; script to initialise Shadowbox.

Tip : Use Firefox, with the Firebug extension - it will give you a huge amount of assistance in determining why things aren't working as you think they should!

[ Side note : your doctype is not compatible with your code syntax - doctype is HTML, code sytnax is XHTML! ]
Combine literacy with curiosity and a whole world of information opens up to you