Shadowbox.setup / Mootools

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

Shadowbox.setup / Mootools

This post was updated on .
I'm using Shadowbox with Mootools, and I'm trying to implement the Shadowbox.setup command, but having some issues with syntax. My Shadowbox init code looks like this:

        <script type="text/javascript"> window.addEvent('domready', function() { var options = { assetURL: "resources/", loadingImage: "images/loading.gif", handleLgImages: 'resize', keysClose: ['c','q','x',27], handleUnsupported: 'remove' }; Shadowbox.init(options); Shadowbox.setup($$('a.shadowBox'), { width: 640, height: 480 }); }); </script>
How should I write the Shadowbox.setup string in Mootools syntax?



I figured it out:

                Shadowbox.setup($('a.shadowbox'), { width:640, height:480 });