new Element()
This class provide the needed Elements for creation
In this class should be all the functions we need to create an Banner. It is a Basic class of the Library.
Please put all low level element functions in this class.
- Version:
- 0.0.1
- Since:
- 07.09.2017
- Source:
Methods
(static) createDiv(sType, sId, sStyle) → {HTMLElement}
Create a HTML container Element
With this function we can simple create an HTML container. Since HTML5 you can also create specific HTML5 Container
when needed.
Parameters:
Name | Type | Description |
---|---|---|
sType |
String | |
sId |
String | |
sStyle |
String |
- Source:
Returns:
- Type
- HTMLElement
(static) iframeObject(sFrame, iWidth, iHeight, sId) → {String}
Creates a simple iFrame
Here we create a very simple iFrame and give it back as String.
Parameters:
Name | Type | Description |
---|---|---|
sFrame |
String | The Frame |
iWidth |
Number | Width of the Image |
iHeight |
Number | Height of the Image |
sId |
String | The id |
- Source:
Returns:
The iFrame as String
- Type
- String
(static) imageObject(sImage, iWidth, iHeight, sLink, sTarget) → {String}
Create an Image with link
In this function we create an Image that has an link. The Element is given back as an String for asn easier use in
other functions
Parameters:
Name | Type | Description |
---|---|---|
sImage |
String | The Image |
iWidth |
Number | Width of the Image |
iHeight |
Number | Height of the Image |
sLink |
String | The target URL |
sTarget |
String | The target Window |
- Source:
Returns:
The image Tag whit an link
- Type
- String
(static) scriptObject(sScript) → {String}
Return the given Script
Here we return the given Script
Parameters:
Name | Type | Description |
---|---|---|
sScript |
- Source:
Returns:
The Script
- Type
- String