Module:InfoBox

From PanoZona

Contents

ImageGallery
Author Marek Standio
Module version 1.0
Compatibility SaladoPlayer 1.0 +

InfoBox is module for displaying simplified html content inside panorama window.

Configuration structure

Configuration details

InfoBox

Attribute TypeSub-attribute TypeDefaultValuesDescription
path S - - path to swf file Mandatory attribute. Value points to module swf file.

window

Attribute TypeSub-attribute TypeDefaultValuesDescription
open B - false true, false Determines visibility of module window on SaladoPlayer start.
alpha N - 1.0 0.1 to 1.0 Transparency of module window content.
minSize O width N 300 - Minimal width of module window.
height N 200 - Minimal height of module window.
maxSize O width N 800 - Maximal width of module window.
height N 600 - Maximal height of module window.
align O horizontal S center left, center, right Horizontal alignment of module window against panorama window.
vertical S middle top, middle, bottom Vertical alignment of module window against panorama window.
margin O top N 50 - Minimal distance from module window and top border of panorama window.
bottom N 50 - Minimal distance from module window and bottom border of panorama window.
left N 50 - Minimal distance from module window and left border of panorama window.
right N 50 - Minimal distance from module window and right border of panorama window.
transition O type S fade fade, slideUp, slideDown, slideLeft, slideRight Determines kind of transition used when module window is opening/closing.
openTween O transition F Linear.easeNone avaible functions Determines type of animation used when module window is opening.
time N 0.5 - Duration in seconds of module window opening animation.
closeTween O transition F Linear.easeNone avaible functions Determines type of animation used when module window is closing.
time N 0.5 - Duration in seconds of module window closing animation.
onOpen S - - action id Action executed when module window changed state to closed.
onClose S - - action id Action executed when module window changed state to opened.

close

Attribute TypeSub-attribute TypeDefaultValuesDescription
path S - - path to swf file Mandatory attribute. Value points to image used as close button.
align O horizontal S right left, center, right Horizontal alignment of close button against module window.
vertical S top top, middle, bottom Vertical alignment of close button against module window.
move O horizontal N 0 - Number of pixels close button is moved horizontally.
vertical N 0 - Number of pixels close button is moved vertically.

viewer

Attribute TypeSub-attribute TypeDefaultValuesDescription
path S - - path to image file Mandatory attribute. Points to image file that will be used as bitmaps for scrolling bar.
scrollSpeed N - 10 - Number of pixels text is scrolled ar mouse wheel movement
style O color N #000000 #000000 to #FFFFFF Color of module window background.
alpha N 1 0.1 to 1.0 Transparency of module window background.
padding N 20 - Distance between text and inner module window border.
css S - - path to css file File can contain only subset of style definishons that is supported by flash player. List of supported styles

article

Attribute TypeSub-attribute TypeDefaultValuesDescription
id S - - - Mandatory attribute. Must be unique among other article nodes.
path S - - path to text file Mandatory attribute. Points to file that contains simplified html code supported by flash player. List of supported tags

Functions

setOpen

TypeDescriptionFunction description
B Value assigned to open attribute. Opens/closes module window on demand. Opening window once window is opened makes no effect, same thing for closing window.

toggleOpen

TypeDescriptionFunction description
- - Calling this function toggles module window open state. If called when window is opened it closes window, same thing other way around.

setArticle

TypeDescriptionFunction description
S article id Makes module display article of given id.