ImageBackground
The Image Background class offer a way to add images in background and adding effect to it (e.g. scrolling movement), also you can use this class to do a image slide in the back.
How to Initialize the Image Background?
1: The initialization of the Image Background is an one step process, just call the function Init of the class with its two arguments (see bellow for more details).
2: Use setter functions to customize your background.
3: Then use Launch() with its 3 arguments.
Class Details
Functions:
Initialization & Main Functions
Name |
Arguments |
Return |
Description |
Init |
|
VOID |
This function Initialized every part of the viewer: HMTL, CSS, Data, Events, etc... It will be generated in the defined ID and all HTML IDs used for this PopUp will start by the RegistryName defined in arguments. Usually Initialize by EE. |
Launch |
|
VOID |
It is used to launch the image slide of the background. |
AddImage |
|
VOID |
Add an image to the background |
AddImageMovement |
|
VOID |
Add add a movement when the page is scrolling down. |
Setters Functions
Name |
Arguments |
Return |
Description |
MatchHorizontal |
|
VOID |
Change if the background image has to match (100%) horizontally. |
AddBlur |
|
VOID |
Setup background blur intensity (default: none). |
Addbrightness |
|
VOID |
Setup background brightness intensity (default: none). |
Private Details
All private details are usable but its recommended to not use any of those. It might modify the proper functioning of the class.
Variables (Members):
Main Members
Name |
Type |
Default Value |
Description |
id |
String |
undefined |
Global HMTL Id of the viewer (# + name). |
name |
String |
undefined |
Name of this PopUp. |
basedId |
String |
undefined |
Where it is located is the existing DOM (its parent). |
Images |
String[] |
[] |
Store all images URL. |
activeImage |
Integer |
0 |
ID of the active image. |
nextImage |
Integer |
1 |
ID of the next image. |
matchHorizontal |
Boolean |
false |
Hold the information about the need to make sure image are a 100% horizontally |
blurIntensity |
Float |
0 |
Hold blur intensity |
brightness |
Float |
0 |
Hold brightness intensity |
Functions:
Updates functions
Name |
Arguments |
Return |
Description |
UpdateTitle |
|
None |
Reset text centering of the title. |
UpdateSelects |
|
None |
Reset text centering of the options. |
UpdateStyle |
|
None |
Set all design of the popup |
Util Functions
Name |
Arguments |
Return |
Description |
GetBG |
|
JQuery DOM Object |
Get the background image div. |
GetFG |
|
JQuery DOM Object |
Get the foreground image div. |
Compatibility
LANGUAGE CLASS: Not compatible.
Created with the Personal Edition of HelpNDoc: Full-featured EBook editor