Once created driven by our AdServer, images change based on established parameters ( Geolocation, weather, date/time, cookies, retargeting …).
To dynamize pictures you have 3 methods at your service :
If you want to select your element use this: sym.$("myImage")
.
If your element is inside a symbol use this: sym.getSymbol("mySymbol").$("myImage")
.
On Adobe Edge you can initialize your element div as an image, this option will put the picture in a background-image
property for this element. If you want to dynamize your background with the DCO Enabler, you have to initialize a void background before using our methods addImage, adaptImage, addAndAdaptImage.
$(sym.$("myElement")).css('background-image', '');
The addImage function allows you to insert an <img>
tag inside a container.
ADventori.Display.addImage(element, data, urlDefault);
This function needs three parameters:
<img>
tag will be inserted.The adaptImage function allows you to adapt an image size to its container.
ADventori.Display.adaptImage(element, displayOption);
This function needs two parameters:
The addAndAdaptImage function allows you to insert an image tag inside a container.
ADventori.Display.addAndAdaptImage(element, url, urlDefault, displayOption);
This function needs four parameters:
<img>
tag will be inserted.