Networks


blogmeetsbrand

var cid = ‘8’;
window.onload = function() {
var adbackhost = ((“https:” == document.location.protocol) ? “https://s.ad-back.net/adbackplugin” : “http://n.ad-back.net/adbackplugin”);
var hostname = window.location.href;
var dataString = “?s=1&c=”+cid+”&p=”+hostname;
var iframesrc = adbackhost+dataString;

var tempIFrame=document.createElement(“iframe”);
tempIFrame.setAttribute(“id”,”ADBACKPlugFrame”);
tempIFrame.setAttribute(“name”,”ADBACKPlugFrame”);
tempIFrame.setAttribute(“src”,iframesrc);
tempIFrame.style.border=’0px’;
tempIFrame.style.width=’0px’;
tempIFrame.style.height=’0px’;
var IFrameObj = document.body.appendChild(tempIFrame);

if (document.frames) {
// this is for IE5 Mac, because it will only
// allow access to the document object
// of the IFrame if we access it through
// the document.frames array
IFrameObj = document.frames[‘ADBACKPlugFrame’];
}

}