• Resolved boos11

    (@boos11)


    i have html file:

    <html>
    <head>
    <meta charset="UTF-8">
    
    <script src="https://code.createjs.com/createjs-2015.11.26.min.js"></script>
    <script src="opel.js?1457024007351"></script>
    <script>
    var canvas, stage, exportRoot;
    function init() {
    	// --- write your JS code here ---
    	canvas = document.getElementById("canvas");
    	images = images||{};
    	var loader = new createjs.LoadQueue(false);
    	loader.addEventListener("fileload", handleFileLoad);
    	loader.addEventListener("complete", handleComplete);
    	loader.loadManifest(lib.properties.manifest);
    }
    function handleFileLoad(evt) {
    	if (evt.item.type == "image") { images[evt.item.id] = evt.result; }
    }
    function handleComplete(evt) {
    	exportRoot = new lib.opel();
    	stage = new createjs.Stage(canvas);
    	stage.addChild(exportRoot);
    	stage.update();
    	stage.enableMouseOver();
    	createjs.Ticker.setFPS(lib.properties.fps);
    	createjs.Ticker.addEventListener("tick", stage);
    }
    </script>
    <script>
    	parsed = (document.location.href.split('#')[1]||'').split('&');
    	params = parsed.reduce(function (params, param) {
    	param = param.split('=');
    	params[param[0]] = decodeURIComponent(param.slice(1).join('='));
    	return params;
    	}, {});
    </script>
    </head>
    
    <body onload="init();" style="margin:0; padding:0;">
    <div onClick="window.open(params.clickTag);"><canvas id="canvas" width="300" height="250" style="background-color:#FFFFFF"></canvas></div>
    </body>
    </html>

    i use code with adrotate:

    <iframe src=”%image%?clickTAG=%link%” height=”250″ frameborder=”0″ style=”border:none;” scrolling=”no”></iframe>

    %link% it’s ok, but clickTag did not work

    click opens a blank page and not in the hyperlink of % link %

    help me please ??

    https://www.ads-software.com/plugins/adrotate/

Viewing 1 replies (of 1 total)
  • Plugin Author Arnan de Gans

    (@adegans)

    In your code you’re looking for clickTag but you provide clickTAG.

    If that doesn’t help, check with whoever provided you the advert. If their tracking doesn’t work that’s not something I can fix for you.

Viewing 1 replies (of 1 total)
  • The topic ‘adrotate html5 problem’ is closed to new replies.