General Actions:
Tips for reducing data size:
Links in the HTML banner is defined in body by <a> with attribute href and target. Link to href may be random - it will be changed to dynamic variable when banner is upload to a system.
Insert value _top in target link (html attribute target), which can be also changed during insertion to the system. The value _top opens website in current window even a banner is inserted via iframe.
Within the iBB AdServer, the following code is inserted between <script></script> tags into head of HTML document. The document secures transfer of variable, click counting and replaces values of href attribute for adequate REDIRECT variable.
function getQueryParam(paramName){
var qs=location.search;
qs=qs.substr(qs.indexOf("?")+1);
allParams=qs.split("&");
for (var i=0;i<allParams.length;i++) {
keyVal=allParams[i].split("=");
if (keyVal[0]==paramName){
return unescape(keyVal[1]);
}
}
return null;
}
document.addEventListener("DOMContentLoaded", function(event) {
var aredir = document.getElementsByTagName('a'); for
( i=0; i<aredir.length; i++){
aredir[i].href= getQueryParam('redir');
aredir[i].target= getQueryParam('bbtarget');
}
});
Individual sources of graphic element, prospective CSS files and JavaScript libraries should be defined without any sub-files - e.g. as example below in one root directory:
<img src=“logo.jpg“>
not
<img src=“obrazky/logo.jpg“>
TIP: Images can be written as data src in Base64 encode, image is not then taken exteral file (another call from browser) but as data written in <img> . converter e.g. here
Test of banner behaviour in standard and mobile browsers is fully controlled by creative creator/ supplier.