javascript and flash development.

multibox

version 1.3.1

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

example

This is my descrition text 1. It can support html.
This is my descrition text 2. It can support html.
This is my descrition text 3. It can support html.

flv example
flv example

mov example
mov example

wmv example
wmv example

real example
real example

mp3 example
mp3 example

HTML page
html

HTML page (Ajax)
html (ajax)

HTML
html element

This is a snipet of html.

  • list item 1
  • list item 2
bbc.co.uk
google

features

usage

new MultiBox('multibox', {
	descClassName:'multiBoxDesc'
});

the rel attribute allows for specific parameters for each item. the following example will make the box handle the item as an image.

rel="type:jpg"

others that can be used are:

jpg / gif / png
these will make sure the box handles the item as an image.
swf
a flash movie
flv
a flash video file
mov
a quicktime movie
wmv
a windows media video
rv / rm / rmvb
real media format
mp3
mp3 format music file
element
an html element on the page

all others will be handled by default in an iFrame.

other rel options are:

	rel="width:400,height:300"

ajax:true can also be used for urls so the content will be loaded into the page not in an iframe.

options

useOverlay
use a semi-transparent background. default: false;
container
the containing element for the overlay if used. default: document.body
contentColor
the color of the background in the window. default: '#FFF'
showNumbers
shows 1 of 8. default: true
showControls
shows the control panel. default: true
descClassName
the class name of the description divs.
offset
object containing x,y offsets for the opened multibox. default: {x:0, y:0}
fixedTop
the value from the top that the box should open to.
openFromLink
should the box open from the link or from the center of the window. default: true
onOpen
a function to call when the box opens.
onClose
a function to call when the box closes.

browser compatibility

requirements

downloads