javascript and flash development.
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.
This is my descrition text 2. It can support html.
HTML page (Ajax)
html (ajax)
HTML
html element
This is a snipet of html.
bbc.co.uk
google
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.