Lost in shadowbox.setup

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view

Lost in shadowbox.setup

Will Fastie
I'm trying to structure Shadowbox so that it loads and initializes on all pages of a site and then allows me to initialize as needed for a given Shadowbox.  I therefore have this:

  <link rel="stylesheet" type="text/css" href="../code/shadowbox3/shadowbox.css"/>
  <script type="text/javascript" src="../code/jquery-1.3.2.min.js"></script>  <script type="text/javascript" src="../code/shadowbox3/shadowbox.js"></script>  <script type="text/javascript"> Shadowbox.init({ language: 'en', continuous: true, players: ['img', 'html', 'swf', 'flv', 'iframe'] }); </script>
Then later I have this in a jQuery $(document).ready block:

  Shadowbox.setup( $('a.xxx'), {
    slideshowDelay: 3,
    fadeDuration: .7

And finally the links have the following attributes:

    class="xxx" rel="shadowbox[Gallery];" href=" ...
    class="xxx" rel="shadowbox[Gallery];" href=" ...
    class="xxx" rel="shadowbox[Gallery];" href=" ...

The result is that I do see the Gallery in a Shadowbox but it does not automatically start, telling me that the .setup() call had no effect.

What have I done wrong?



www.fastie.com, Baltimore, MD USA.