Class: CreateBanner

SDI.LIBRARY.CreateBanner

new CreateBanner(iTop, iLeft, iHeight, iWidth, iZIndex, sLink, sTarget, sId, oMedia) → {HTMLElement}

Create an Banner Based on an Image, or an IFrame

With This Class we create a piece of an Banner for use in simple or more complex Banners. It use an simple Trick to select the right media. If in the Form an Image is present, it create an Image Banner if an IFrame present it create an IFrame Banner. If both, an Image Banner will be create. The position values are represent the absolute position to the parent(relative positioned) Element.
Parameters:
Name Type Description
iTop Number Top position
iLeft Number Left position
iHeight Number Height
iWidth Number Width
iZIndex Number zIndex
sLink String Target URL
sTarget String Target Window
sId String The Identifier
oMedia Object Object with type and source
Version:
  • 0.0.1
Since:
  • 08.09.2017
Author:
  • e.best
Source:
Returns:
Type
HTMLElement

Methods

(static) getDiv() → {HTMLElement}

Get a Div container as Holder for the Image or iFrame Element.

With tis function we get a Div container from the Element class, put it together with the media piece and give it back to the constructor.
Source:
See:
Returns:
Type
HTMLElement