From September, Flash will no longer be supported by Chrome. Prepare for the shift towards HTML5 by visiting our Flash to HTML5 help page

Check it out!

Adding multiple clickTAGs

If there is a need to have multiple clickTAGs on the same banner please do the following:

  1. Set id or (class name) for click elements:
    <div id="element"> 
    <div id="linkbox"> 
    <a id="left">My Link1</a> 
    <a id="center">My Link2</a> 
    <a id="right">My Link3</a> 
  2.  Define a clickTAG values for each clickTAG instance. Values should get landing page url from Adform system (dhtml.getVar) once the banner is placed there or may use some static value for local testing. Collect all clickTAG instance elements from HTML document by using getElementById or getElementsByClass methods. Set the 'onlick' function to each separately. Place such script somewhere below the click elements in html document (just to make sure the elements are created earlier then the code is executed):
     clickTAGvalue = dhtml.getVar('clickTAG', ''); 
     clickTAGvalue2 = dhtml.getVar('clickTAG2', ''); 
     clickTAGvalue3 = dhtml.getVar('clickTAG3', ''); 
     landingpagetarget = dhtml.getVar('landingPageTarget', '_blank'); 
     var center = document.getElementById('center');  
     var left = document.getElementById('left'); 
     var right = document.getElementById('right'); 
     center.onclick = function() {,landingpagetarget); 
     left.onclick = function() {,landingpagetarget); 
     right.onclick = function() {,landingpagetarget); 

    Click on particular click layer area calls a function that opens a window with an inherited particular clickTAG url value from Adform system or the particular fallback static url (testing locally). If banner is uploaded to system getVar returns URL defined in system next to asset. If we are testing banner locally - fallback url is taken as clickTAG is 'null' so far.

  3. Register multiple clickTAGs to manifest.json file before the banner is uploaded to system, sample:
    	"version": "1.0", 
    	"title": "Banner-Sample-580x400", 
    	"description": "", 
    	"width" : "580", 
    	"height": "400", 
    	"events": { 
    		"enabled": 1, 
    		"list": { } 
    	"clicktags": { 
    		"clickTAG": "", 
    		"clickTAG2": "", 
    		"clickTAG3": "", 
    	"source": "index.html"