MyBB Community Forums

Full Version: Advertisement error
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hello,

I want to add a banner with a long html code that contain java script how can I do that??
the advertiser sent me the file that contain the HTML banner with the .js file too.
how can I do that??

when I try to paste the html code in the my advertisement plugin it gives me an error why?
(2019-05-24, 10:31 AM)ForumDime Wrote: [ -> ]Hello,

I want to add a banner with a long html code that contain java script how can I do that??
the advertiser sent me the file that contain the HTML banner with the .js file too.
how can I do that??

when I try to paste the html code in the my advertisement plugin it gives me an error why?

Can you post the file or code here so we can see what you are trying to use.
(2019-05-24, 11:22 AM)iAndrew Wrote: [ -> ]
(2019-05-24, 10:31 AM)ForumDime Wrote: [ -> ]Hello,

I want to add a banner with a long html code that contain java script how can I do that??
the advertiser sent me the file that contain the HTML banner with the .js file too.
how can I do that??

when I try to paste the html code in the my advertisement plugin it gives me an error why?

Can you post the file or code here so we can see what you are trying to use.

<!DOCTYPE html>
<!--
NOTES:
1. All tokens are represented by '$' sign in the template.
2. You can write your code only wherever mentioned.
3. All occurrences of existing tokens will be replaced by their appropriate values.
4. Blank lines will be removed automatically.
5. Remove unnecessary comments before creating your template.
-->
<html>
<head>
<meta charset="UTF-8">
<meta name="authoring-tool" content="Adobe_Animate_CC">
<title>728_90</title>
<!-- write your code here -->
<script src="https://code.createjs.com/createjs-2015.11.26.min.js"></script>
<script src="728_90.js"></script>
<script>
var canvas, stage, exportRoot, anim_container, dom_overlay_container, fnStartAnimation;
function init() {
canvas = document.getElementById("canvas");
anim_container = document.getElementById("animation_container");
dom_overlay_container = document.getElementById("dom_overlay_container");
var comp=AdobeAn.getComposition("B5B99B95ABDF4874BA34F28098FF56BF");
var lib=comp.getLibrary();
var loader = new createjs.LoadQueue(false);
loader.addEventListener("fileload", function(evt){handleFileLoad(evt,comp)});
loader.addEventListener("complete", function(evt){handleComplete(evt,comp)});
var lib=comp.getLibrary();
loader.loadManifest(lib.properties.manifest);
}
function handleFileLoad(evt, comp) {
var images=comp.getImages();
if (evt && (evt.item.type == "image")) { images[evt.item.id] = evt.result; }
}
function handleComplete(evt,comp) {
//This function is always called, irrespective of the content. You can use the variable "stage" after it is created in token create_stage.
var lib=comp.getLibrary();
var ss=comp.getSpriteSheet();
var queue = evt.target;
var ssMetadata = lib.ssMetadata;
for(i=0; i<ssMetadata.length; i++) {
ss[ssMetadata.name] = new createjs.SpriteSheet( {"images": [queue.getResult(ssMetadata[i].name)], "frames": ssMetadata[i].frames} )[/i][/i][i][i]
}
exportRoot = new lib._728_90();
stage = new lib.Stage(canvas);
stage.enableMouseOver();
[i]//Registers the "tick" event listener.

fnStartAnimation = function() {
stage.addChild(exportRoot);
createjs.Ticker.setFPS(lib.properties.fps);
createjs.Ticker.addEventListener("tick", stage);
}    
//Code to support hidpi screens and responsive scaling.
function makeResponsive(isResp, respDim, isScale, scaleType) {
var lastW, lastH, lastS=1;
window.addEventListener('resize', resizeCanvas);
resizeCanvas();
function resizeCanvas() {
var w = lib.properties.width, h = lib.properties.height;
var iw = window.innerWidth, ih=window.innerHeight;
var pRatio = window.devicePixelRatio || 1, xRatio=iw/w, yRatio=ih/h, sRatio=1;
if(isResp) {                
if((respDim=='width'&&lastW==iw) || (respDim=='height'&&lastH==ih)) {                    
sRatio = lastS;                
}
else if(!isScale) {
if(iw<w || ih<h)
sRatio = Math.min(xRatio, yRatio);
}
else if(scaleType==1) {
sRatio = Math.min(xRatio, yRatio);
}
else if(scaleType==2) {
sRatio = Math.max(xRatio, yRatio);
}
}
canvas.width = w*pRatio*sRatio;
canvas.height = h*pRatio*sRatio;
canvas.style.width = dom_overlay_container.style.width = anim_container.style.width =  w*sRatio+'px';
canvas.style.height = anim_container.style.height = dom_overlay_container.style.height = h*sRatio+'px';
stage.scaleX = pRatio*sRatio;
stage.scaleY = pRatio*sRatio;
lastW = iw; lastH = ih; lastS = sRatio;            
stage.tickOnUpdate = false;            
stage.update();            
stage.tickOnUpdate = true;
}
}
makeResponsive(false,'both',false,1);
AdobeAn.compositionLoaded(lib.properties.id);
fnStartAnimation();
}
</script>
<!-- write your code here -->
</head>
<body onload="init();" style="margin:0px;">
<div id="animation_container" style="background-color:rgba(255, 255, 255, 1.00); width:728px; height:90px">
        <div id="clickTagLayer" style="position: absolute; top: 0; left: 0; z-index: 16777271; width: 100%; height: 100%; cursor: pointer; cursor: hand"></div>
<canvas id="canvas" width="728" height="90" style="position: absolute; display: block; background-color:rgba(255, 255, 255, 1.00);"></canvas>
<div id="dom_overlay_container" style="pointer-events:none; overflow:hidden; width:728px; height:90px; position: absolute; left: 0px; top: 0px; display: block;">
</div>
</div>
     <script>
function getUrlVars() {
        var vars = {};
        var parts = window.location.href.replace(/[?&]+([^=&]+)=([^&]*)/gi, function(m,key,value) {
            vars[key] = value;
        });
        return vars;
    }

  var layer = document.getElementById("clickTagLayer");
  if (layer) {
    var listen = function(obj, e, fn) { if (obj.addEventListener) { obj.addEventListener(e, fn, false); } else { obj.attachEvent("on"+e, fn); } };    listen(layer, 'click', function (evt) {
      evt.stopPropagation();
      try { evt.cancelBubble(); } catch (e) { /* ignore */ }
  
        window.open(decodeURIComponent(getUrlVars()['dataUrl']), '_blank');
    });
  }

</script>
</body>
</html>
[/i][/i][/i]

and there is .js file too and a folder with images but I don't know where to add them so I can make this banner apear on header, footer and postbit
Add this in templates > Your theme > Ungrouped Templates > Headerinclude

<!-- write your code here -->
<script src="https://code.createjs.com/createjs-2015.11.26.min.js"></script>
<script src="728_90.js"></script>
<script>
var canvas, stage, exportRoot, anim_container, dom_overlay_container, fnStartAnimation;
function init() {
canvas = document.getElementById("canvas");
anim_container = document.getElementById("animation_container");
dom_overlay_container = document.getElementById("dom_overlay_container");
var comp=AdobeAn.getComposition("B5B99B95ABDF4874BA34F28098FF56BF");
var lib=comp.getLibrary();
var loader = new createjs.LoadQueue(false);
loader.addEventListener("fileload", function(evt){handleFileLoad(evt,comp)});
loader.addEventListener("complete", function(evt){handleComplete(evt,comp)});
var lib=comp.getLibrary();
loader.loadManifest(lib.properties.manifest);
}
function handleFileLoad(evt, comp) {
var images=comp.getImages(); 
if (evt && (evt.item.type == "image")) { images[evt.item.id] = evt.result; } 
}
function handleComplete(evt,comp) {
//This function is always called, irrespective of the content. You can use the variable "stage" after it is created in token create_stage.
var lib=comp.getLibrary();
var ss=comp.getSpriteSheet();
var queue = evt.target;
var ssMetadata = lib.ssMetadata;
for(i=0; i<ssMetadata.length; i++) {
ss[ssMetadata.name] = new createjs.SpriteSheet( {"images": [queue.getResult(ssMetadata[i].name)], "frames": ssMetadata[i].frames} )[/i][/i][i][i]
}
exportRoot = new lib._728_90();
stage = new lib.Stage(canvas);
stage.enableMouseOver(); 
[i]//Registers the "tick" event listener.
fnStartAnimation = function() {
stage.addChild(exportRoot);
createjs.Ticker.setFPS(lib.properties.fps);
createjs.Ticker.addEventListener("tick", stage);
}    
//Code to support hidpi screens and responsive scaling.
function makeResponsive(isResp, respDim, isScale, scaleType) { 
var lastW, lastH, lastS=1; 
window.addEventListener('resize', resizeCanvas); 
resizeCanvas(); 
function resizeCanvas() { 
var w = lib.properties.width, h = lib.properties.height; 
var iw = window.innerWidth, ih=window.innerHeight; 
var pRatio = window.devicePixelRatio || 1, xRatio=iw/w, yRatio=ih/h, sRatio=1; 
if(isResp) {                
if((respDim=='width'&&lastW==iw) || (respDim=='height'&&lastH==ih)) {                    
sRatio = lastS;                
} 
else if(!isScale) { 
if(iw<w || ih<h) 
sRatio = Math.min(xRatio, yRatio); 
} 
else if(scaleType==1) { 
sRatio = Math.min(xRatio, yRatio); 
} 
else if(scaleType==2) { 
sRatio = Math.max(xRatio, yRatio); 
} 
} 
canvas.width = w*pRatio*sRatio; 
canvas.height = h*pRatio*sRatio;
canvas.style.width = dom_overlay_container.style.width = anim_container.style.width =  w*sRatio+'px'; 
canvas.style.height = anim_container.style.height = dom_overlay_container.style.height = h*sRatio+'px';
stage.scaleX = pRatio*sRatio; 
stage.scaleY = pRatio*sRatio; 
lastW = iw; lastH = ih; lastS = sRatio;            
stage.tickOnUpdate = false;            
stage.update();            
stage.tickOnUpdate = true; 
}
}
makeResponsive(false,'both',false,1); 
AdobeAn.compositionLoaded(lib.properties.id);
fnStartAnimation();
}
</script>
<!-- write your code here -->


     <script>
function getUrlVars() {
        var vars = {};
        var parts = window.location.href.replace(/[?&]+([^=&]+)=([^&]*)/gi, function(m,key,value) {
            vars[key] = value;
        });
        return vars;
    }

  var layer = document.getElementById("clickTagLayer");
  if (layer) {
    var listen = function(obj, e, fn) { if (obj.addEventListener) { obj.addEventListener(e, fn, false); } else { obj.attachEvent("on"+e, fn); } };    listen(layer, 'click', function (evt) {
      evt.stopPropagation();
      try { evt.cancelBubble(); } catch (e) { /* ignore */ }
  
        window.open(decodeURIComponent(getUrlVars()['dataUrl']), '_blank');
    });
  }

</script>

Make sure you correct this with the correct url for the file.
<script src="728_90.js"></script>

Replace this in templates > your theme > index page templates > index
<body>

With this
<body onload="init();" style="margin:0px;">


This must be your ad code.
<div id="animation_container" style="background-color:rgba(255, 255, 255, 1.00); width:728px; height:90px">
        <div id="clickTagLayer" style="position: absolute; top: 0; left: 0; z-index: 16777271; width: 100%; height: 100%; cursor: pointer; cursor: hand"></div>
<canvas id="canvas" width="728" height="90" style="position: absolute; display: block; background-color:rgba(255, 255, 255, 1.00);"></canvas>
<div id="dom_overlay_container" style="pointer-events:none; overflow:hidden; width:728px; height:90px; position: absolute; left: 0px; top: 0px; display: block;">
</div>
</div>

Try place the folder of images in /images/ or open 728_90.js in notepad++ and see if it has links for images.
(2019-05-24, 12:05 PM)iAndrew Wrote: [ -> ]Add this in templates > Your theme > Ungrouped Templates > Headerinclude

<!-- write your code here -->
<script src="https://code.createjs.com/createjs-2015.11.26.min.js"></script>
<script src="728_90.js"></script>
<script>
var canvas, stage, exportRoot, anim_container, dom_overlay_container, fnStartAnimation;
function init() {
canvas = document.getElementById("canvas");
anim_container = document.getElementById("animation_container");
dom_overlay_container = document.getElementById("dom_overlay_container");
var comp=AdobeAn.getComposition("B5B99B95ABDF4874BA34F28098FF56BF");
var lib=comp.getLibrary();
var loader = new createjs.LoadQueue(false);
loader.addEventListener("fileload", function(evt){handleFileLoad(evt,comp)});
loader.addEventListener("complete", function(evt){handleComplete(evt,comp)});
var lib=comp.getLibrary();
loader.loadManifest(lib.properties.manifest);
}
function handleFileLoad(evt, comp) {
var images=comp.getImages(); 
if (evt && (evt.item.type == "image")) { images[evt.item.id] = evt.result; } 
}
function handleComplete(evt,comp) {
//This function is always called, irrespective of the content. You can use the variable "stage" after it is created in token create_stage.
var lib=comp.getLibrary();
var ss=comp.getSpriteSheet();
var queue = evt.target;
var ssMetadata = lib.ssMetadata;
for(i=0; i<ssMetadata.length; i++) {
ss[ssMetadata.name] = new createjs.SpriteSheet( {"images": [queue.getResult(ssMetadata[i].name)], "frames": ssMetadata[i].frames} )[/i][/i][i][i]
}
exportRoot = new lib._728_90();
stage = new lib.Stage(canvas);
stage.enableMouseOver(); 
[i]//Registers the "tick" event listener.
fnStartAnimation = function() {
stage.addChild(exportRoot);
createjs.Ticker.setFPS(lib.properties.fps);
createjs.Ticker.addEventListener("tick", stage);
}    
//Code to support hidpi screens and responsive scaling.
function makeResponsive(isResp, respDim, isScale, scaleType) { 
var lastW, lastH, lastS=1; 
window.addEventListener('resize', resizeCanvas); 
resizeCanvas(); 
function resizeCanvas() { 
var w = lib.properties.width, h = lib.properties.height; 
var iw = window.innerWidth, ih=window.innerHeight; 
var pRatio = window.devicePixelRatio || 1, xRatio=iw/w, yRatio=ih/h, sRatio=1; 
if(isResp) {                
if((respDim=='width'&&lastW==iw) || (respDim=='height'&&lastH==ih)) {                    
sRatio = lastS;                
} 
else if(!isScale) { 
if(iw<w || ih<h) 
sRatio = Math.min(xRatio, yRatio); 
} 
else if(scaleType==1) { 
sRatio = Math.min(xRatio, yRatio); 
} 
else if(scaleType==2) { 
sRatio = Math.max(xRatio, yRatio); 
} 
} 
canvas.width = w*pRatio*sRatio; 
canvas.height = h*pRatio*sRatio;
canvas.style.width = dom_overlay_container.style.width = anim_container.style.width =  w*sRatio+'px'; 
canvas.style.height = anim_container.style.height = dom_overlay_container.style.height = h*sRatio+'px';
stage.scaleX = pRatio*sRatio; 
stage.scaleY = pRatio*sRatio; 
lastW = iw; lastH = ih; lastS = sRatio;            
stage.tickOnUpdate = false;            
stage.update();            
stage.tickOnUpdate = true; 
}
}
makeResponsive(false,'both',false,1); 
AdobeAn.compositionLoaded(lib.properties.id);
fnStartAnimation();
}
</script>
<!-- write your code here -->


     <script>
function getUrlVars() {
        var vars = {};
        var parts = window.location.href.replace(/[?&]+([^=&]+)=([^&]*)/gi, function(m,key,value) {
            vars[key] = value;
        });
        return vars;
    }

  var layer = document.getElementById("clickTagLayer");
  if (layer) {
    var listen = function(obj, e, fn) { if (obj.addEventListener) { obj.addEventListener(e, fn, false); } else { obj.attachEvent("on"+e, fn); } };    listen(layer, 'click', function (evt) {
      evt.stopPropagation();
      try { evt.cancelBubble(); } catch (e) { /* ignore */ }
  
        window.open(decodeURIComponent(getUrlVars()['dataUrl']), '_blank');
    });
  }

</script>

Make sure you correct this with the correct url for the file.
<script src="728_90.js"></script>

Replace this in templates > your theme > index page templates > index
<body>

With this
<body onload="init();" style="margin:0px;">


This must be your add code.
<div id="animation_container" style="background-color:rgba(255, 255, 255, 1.00); width:728px; height:90px">
        <div id="clickTagLayer" style="position: absolute; top: 0; left: 0; z-index: 16777271; width: 100%; height: 100%; cursor: pointer; cursor: hand"></div>
<canvas id="canvas" width="728" height="90" style="position: absolute; display: block; background-color:rgba(255, 255, 255, 1.00);"></canvas>
<div id="dom_overlay_container" style="pointer-events:none; overflow:hidden; width:728px; height:90px; position: absolute; left: 0px; top: 0px; display: block;">
</div>
</div>

Try place the folder of images in /images/ or open 728_90.js in notepad++ and see if it has links for images.
Thank you 
but unfortunately it didn't work
Give us an url to let us see
www.forumdime.com

also I deleted it because then I add the code my website jam and nothing happens
Hi,

there were little errors in the code that paste iAndrew, and MyBB's code it's showing in a javascript code, so it'll not work at all.

I think I cleaned it all. Try to use it in in templates > Your theme > Ungrouped Templates > Headerinclude as iAndrew said.

<!-- write your code here -->
<script src="https://code.createjs.com/createjs-2015.11.26.min.js"></script>
<script src="728_90.js"></script>
<script>
var canvas, stage, exportRoot, anim_container, dom_overlay_container, fnStartAnimation;
function init() {
canvas = document.getElementById("canvas");
anim_container = document.getElementById("animation_container");
dom_overlay_container = document.getElementById("dom_overlay_container");
var comp=AdobeAn.getComposition("B5B99B95ABDF4874BA34F28098FF56BF");
var lib=comp.getLibrary();
var loader = new createjs.LoadQueue(false);
loader.addEventListener("fileload", function(evt){handleFileLoad(evt,comp)});
loader.addEventListener("complete", function(evt){handleComplete(evt,comp)});
var lib=comp.getLibrary();
loader.loadManifest(lib.properties.manifest);
}
function handleFileLoad(evt, comp) {
var images=comp.getImages(); 
if (evt && (evt.item.type == "image")) { images[evt.item.id] = evt.result; } 
}
function handleComplete(evt,comp) {
//This function is always called, irrespective of the content. You can use the variable "stage" after it is created in token create_stage.
var lib=comp.getLibrary();
var ss=comp.getSpriteSheet();
var queue = evt.target;
var ssMetadata = lib.ssMetadata;
for(i=0; i<ssMetadata.length; i++) {
ss[ssMetadata.name] = new createjs.SpriteSheet( {"images": [queue.getResult(ssMetadata[i].name)], "frames": ssMetadata[i].frames} );
}
exportRoot = new lib._728_90();
stage = new lib.Stage(canvas);
stage.enableMouseOver(); 
//Registers the "tick" event listener.
fnStartAnimation = function() {
stage.addChild(exportRoot);
createjs.Ticker.setFPS(lib.properties.fps);
createjs.Ticker.addEventListener("tick", stage);
}    
//Code to support hidpi screens and responsive scaling.
function makeResponsive(isResp, respDim, isScale, scaleType) { 
var lastW, lastH, lastS=1; 
window.addEventListener('resize', resizeCanvas); 
resizeCanvas(); 
function resizeCanvas() { 
var w = lib.properties.width, h = lib.properties.height; 
var iw = window.innerWidth, ih=window.innerHeight; 
var pRatio = window.devicePixelRatio || 1, xRatio=iw/w, yRatio=ih/h, sRatio=1; 
if(isResp) {                
if((respDim=='width'&&lastW==iw) || (respDim=='height'&&lastH==ih)) {                    
sRatio = lastS;                
} 
else if(!isScale) { 
if(iw<w || ih<h) 
sRatio = Math.min(xRatio, yRatio); 
} 
else if(scaleType==1) { 
sRatio = Math.min(xRatio, yRatio); 
} 
else if(scaleType==2) { 
sRatio = Math.max(xRatio, yRatio); 
} 
} 
canvas.width = w*pRatio*sRatio; 
canvas.height = h*pRatio*sRatio;
canvas.style.width = dom_overlay_container.style.width = anim_container.style.width =  w*sRatio+'px'; 
canvas.style.height = anim_container.style.height = dom_overlay_container.style.height = h*sRatio+'px';
stage.scaleX = pRatio*sRatio; 
stage.scaleY = pRatio*sRatio; 
lastW = iw; lastH = ih; lastS = sRatio;            
stage.tickOnUpdate = false;            
stage.update();            
stage.tickOnUpdate = true; 
}
}
makeResponsive(false,'both',false,1); 
AdobeAn.compositionLoaded(lib.properties.id);
fnStartAnimation();
}
</script>
<!-- write your code here -->


     <script>
function getUrlVars() {
        var vars = {};
        var parts = window.location.href.replace(/[?&]+([^=&]+)=([^&]*)/gi, function(m,key,value) {
            vars[key] = value;
        });
        return vars;
    }

  var layer = document.getElementById("clickTagLayer");
  if (layer) {
    var listen = function(obj, e, fn) { if (obj.addEventListener) { obj.addEventListener(e, fn, false); } else { obj.attachEvent("on"+e, fn); } };    listen(layer, 'click', function (evt) {
      evt.stopPropagation();
      try { evt.cancelBubble(); } catch (e) { /* ignore */ }
  
        window.open(decodeURIComponent(getUrlVars()['dataUrl']), '_blank');
    });
  }

</script>


And don't forget to put the 728_90.js file in the root folder (now it's missing)
(2019-05-24, 01:43 PM)NoRules Wrote: [ -> ]Hi,

there were little errors in the code that paste iAndrew, and MyBB's code it's showing in a javascript code, so it'll not work at all.

I think I cleaned it all. Try to use it in in templates > Your theme > Ungrouped Templates > Headerinclude as iAndrew said.

<!-- write your code here -->
<script src="https://code.createjs.com/createjs-2015.11.26.min.js"></script>
<script src="728_90.js"></script>
<script>
var canvas, stage, exportRoot, anim_container, dom_overlay_container, fnStartAnimation;
function init() {
canvas = document.getElementById("canvas");
anim_container = document.getElementById("animation_container");
dom_overlay_container = document.getElementById("dom_overlay_container");
var comp=AdobeAn.getComposition("B5B99B95ABDF4874BA34F28098FF56BF");
var lib=comp.getLibrary();
var loader = new createjs.LoadQueue(false);
loader.addEventListener("fileload", function(evt){handleFileLoad(evt,comp)});
loader.addEventListener("complete", function(evt){handleComplete(evt,comp)});
var lib=comp.getLibrary();
loader.loadManifest(lib.properties.manifest);
}
function handleFileLoad(evt, comp) {
var images=comp.getImages(); 
if (evt && (evt.item.type == "image")) { images[evt.item.id] = evt.result; } 
}
function handleComplete(evt,comp) {
//This function is always called, irrespective of the content. You can use the variable "stage" after it is created in token create_stage.
var lib=comp.getLibrary();
var ss=comp.getSpriteSheet();
var queue = evt.target;
var ssMetadata = lib.ssMetadata;
for(i=0; i<ssMetadata.length; i++) {
ss[ssMetadata.name] = new createjs.SpriteSheet( {"images": [queue.getResult(ssMetadata[i].name)], "frames": ssMetadata[i].frames} );
}
exportRoot = new lib._728_90();
stage = new lib.Stage(canvas);
stage.enableMouseOver(); 
//Registers the "tick" event listener.
fnStartAnimation = function() {
stage.addChild(exportRoot);
createjs.Ticker.setFPS(lib.properties.fps);
createjs.Ticker.addEventListener("tick", stage);
}    
//Code to support hidpi screens and responsive scaling.
function makeResponsive(isResp, respDim, isScale, scaleType) { 
var lastW, lastH, lastS=1; 
window.addEventListener('resize', resizeCanvas); 
resizeCanvas(); 
function resizeCanvas() { 
var w = lib.properties.width, h = lib.properties.height; 
var iw = window.innerWidth, ih=window.innerHeight; 
var pRatio = window.devicePixelRatio || 1, xRatio=iw/w, yRatio=ih/h, sRatio=1; 
if(isResp) {                
if((respDim=='width'&&lastW==iw) || (respDim=='height'&&lastH==ih)) {                    
sRatio = lastS;                
} 
else if(!isScale) { 
if(iw<w || ih<h) 
sRatio = Math.min(xRatio, yRatio); 
} 
else if(scaleType==1) { 
sRatio = Math.min(xRatio, yRatio); 
} 
else if(scaleType==2) { 
sRatio = Math.max(xRatio, yRatio); 
} 
} 
canvas.width = w*pRatio*sRatio; 
canvas.height = h*pRatio*sRatio;
canvas.style.width = dom_overlay_container.style.width = anim_container.style.width =  w*sRatio+'px'; 
canvas.style.height = anim_container.style.height = dom_overlay_container.style.height = h*sRatio+'px';
stage.scaleX = pRatio*sRatio; 
stage.scaleY = pRatio*sRatio; 
lastW = iw; lastH = ih; lastS = sRatio;            
stage.tickOnUpdate = false;            
stage.update();            
stage.tickOnUpdate = true; 
}
}
makeResponsive(false,'both',false,1); 
AdobeAn.compositionLoaded(lib.properties.id);
fnStartAnimation();
}
</script>
<!-- write your code here -->


     <script>
function getUrlVars() {
        var vars = {};
        var parts = window.location.href.replace(/[?&]+([^=&]+)=([^&]*)/gi, function(m,key,value) {
            vars[key] = value;
        });
        return vars;
    }

  var layer = document.getElementById("clickTagLayer");
  if (layer) {
    var listen = function(obj, e, fn) { if (obj.addEventListener) { obj.addEventListener(e, fn, false); } else { obj.attachEvent("on"+e, fn); } };    listen(layer, 'click', function (evt) {
      evt.stopPropagation();
      try { evt.cancelBubble(); } catch (e) { /* ignore */ }
  
        window.open(decodeURIComponent(getUrlVars()['dataUrl']), '_blank');
    });
  }

</script>


And don't forget to put the 728_90.js file in the root folder (now it's missing)
Yes now I can see the banner, but when I ever I add the code to my header or footer my forum get jammed.

what shall i do?
Edit the thread subject to something meaningful.
Thats the rule.