Multibox Open on Page Load

lightbox that supports images, flash, video, mp3s, html

Multibox Open on Page Load

by kflows00 on Mon Dec 29, 2008 8:27 pm

Hello all! I found this code elsewhere in the forum, to make the multibox open when the page loads. The id of the link is mb10:

Code: Select all
    <script type="text/javascript">
             var box = {};
             window.addEvent('domready', function(){
                box = new MultiBox('mb', {descClassName: 'multiBoxDesc', useOverlay: true});
                box.open($('mb10'));
             });
          </script>


Where is this code supposed to go?? I've tried putting it in a couple different places in the page's code, but it won't seem to work. The multibox itself is working fine when I manually click on the link, though I haven't figured out where in the CSS code I can change formatting yet (fonts, etc.), I can't seem to figure out how to get this "onload" code to work! Note that I'm using the mootools/multibox package downloaded from here: http://www.liamsmart.co.uk/Downloads/
kflows00
 
Posts: 1
Joined: Mon Dec 29, 2008 8:22 pm

Return to multibox

Who is online

Users browsing this forum: No registered users and 1 guest