var tag = document.createElement('script'); tag.src = "https://www.googletagservices.com/tag/js/gpt.js"; var firstScriptTag = document.getElementsByTagName('script')[0]; firstScriptTag.parentNode.insertBefore(tag, firstScriptTag); var objBase1 = document.querySelector("#ad_a_all_TopRight"); var objBase2 = document.createElement("div"); var objAdLeft = document.createElement("div"); var objAdRight = document.createElement("div"); objBase1.style.position = "absolute"; objBase1.style.top = "160px"; objBase1.style.left = "0px"; objBase1.style.width = "100%"; objBase1.style.height = "0px"; objBase1.style.zIndex = "1000"; objBase2.style.position = "relative"; objBase2.style.width = "1000px"; objBase2.style.margin = "0px auto 0px auto"; objAdLeft.style.position = "absolute"; objAdLeft.style.top = "0px"; objAdLeft.style.left = "-260px"; objAdLeft.style.width = "160px"; objAdLeft.style.height = "600px"; objAdLeft.setAttribute("id", "div-gpt-ad-1532399880470-0"); objAdRight.style.position = "absolute"; objAdRight.style.top = "0px"; objAdRight.style.right = "-260px"; objAdRight.style.width = "160px"; objAdRight.style.height = "600px"; objAdRight.setAttribute("id", "div-gpt-ad-1531809765751-0"); objBase1.appendChild(objBase2); objBase2.appendChild(objAdLeft); objBase2.appendChild(objAdRight); var googletag = googletag || {}; googletag.cmd = googletag.cmd || []; googletag.cmd.push(function() { googletag.defineSlot('/56187064/huffskyscrapper/huffskyscrapper2', [160, 600], 'div-gpt-ad-1532399880470-0').addService(googletag.pubads()); googletag.defineSlot('/56187064/huffskyscrapper', [160, 600], 'div-gpt-ad-1531809765751-0').addService(googletag.pubads()); googletag.pubads().enableSingleRequest(); googletag.enableServices(); }); googletag.cmd.push(function() { googletag.display('div-gpt-ad-1532399880470-0'); }); googletag.cmd.push(function() { googletag.display('div-gpt-ad-1531809765751-0'); });