phatfusion
javascript and flash development.
multibox
version 1.3.1
lightbox that supports images, flash, video, mp3s, html.
example
features
- supports a range of multimedia formats
- auto detects formats or you can specify the format, useful if your passing a querystring!
- html descriptions
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
- Firefox 2 (mac / pc)
- IE 7
- IE 6
- Safari (mac)
requirements
downloads