Class DHTMLSuite.imageEnlarger
Object
|
+--DHTMLSuite.imageEnlarger
- class
DHTMLSuite.imageEnlarger
Purpose of class: Enlarge an image and displays it at the center of the screen. (Demo)
The constructor accepts an associative array of properties as argument. Possible keys in this array:
isDragable - true if the image is drabable
isModal - true if the image should be modal
closeLinkTxt - Text of close links
Defined in dhtml-suite-for-applications.js
Author: Alf Magne Kalleland(www.dhtmlgoodies.com)
Version: 1.0
Method Summary |
void
|
__setInitProps(props)
Set initial properties
|
void
|
displayImage(imagePath,title,description)
Display image
|
Object
|
hide()
Hide the image
|
void
|
setCloseLinkTxt(closeLinkTxt)
Set text for close link text
|
void
|
setDragOffset(dragOffsetX,dragOffsetY)
If drag is enabled, you can set drag offset here.
|
void
|
setIsDragable(isDragable)
Specify if the image should be dragable, default = false;
|
void
|
setIsModal(isModal)
Specify if the window should be modal, i.e.
|
void
|
setLayoutCss(newLayoutCss)
Specify new relative path/name to css file(default is image-enlarger.css)
The complete path to this file will be the path set by the DHTMLSuite-config object + this value
|
closeLinkTxt
Object closeLinkTxt
dragOffsetX
Object dragOffsetX
dragOffsetY
Object dragOffsetY
isDragable
Object isDragable
isModal
Object isModal
layoutCSS
Object layoutCSS
msieOpacity
Object msieOpacity
objectIndex
Object objectIndex
resizeTransparentAllowed
Object resizeTransparentAllowed
DHTMLSuite.imageEnlarger
DHTMLSuite.imageEnlarger(props)
Author: Alf Magne Kalleland(www.dhtmlgoodies.com)
Version: 1.0
__setInitProps
void __setInitProps(props)
Parameters:
Array
- props - Associative array of properties
displayImage
void displayImage(imagePath,title,description)
Parameters:
String
- imagePath - Path to image
String
- title - Title of image
String
- description - Description/Caption of image.
hide
Object hide()
setCloseLinkTxt
void setCloseLinkTxt(closeLinkTxt)
Set text for close link text
Parameters:
String
- closeLinkTxt - Label of close link - If you pass in false or empty string, no close link will be displayed.
setDragOffset
void setDragOffset(dragOffsetX,dragOffsetY)
If drag is enabled, you can set drag offset here. It is useful if you experience some "jumping" when this script is initialized.
That jumping is caused by the drag script not being able to determine the position of the element correctly.
Parameters:
Integer
- offsetX - offset position
Integer
- offsetY - offset position
setIsDragable
void setIsDragable(isDragable)
Specify if the image should be dragable, default = false;
setIsModal
void setIsModal(isModal)
Specify if the window should be modal, i.e. a transparent div behind the image.
setLayoutCss
void setLayoutCss(newLayoutCss)
Specify new relative path/name to css file(default is image-enlarger.css)
The complete path to this file will be the path set by the DHTMLSuite-config object + this value
Parameters:
String
- newLayoutCss - Name (or path) to new css file
Documentation generated by
JSDoc on Mon Oct 8 10:17:27 2007