var iframe=document.createElement('iframe'); iframe.src = "//ad.lomadee.com/banner/view?sourceId=36007951&dimension=2&width=468&height=60&method=1&advertisers=6053&tags="; iframe.style='width: 468px;height: 60px'; iframe.frameBorder = 0; iframe.width = "0"; iframe.height = "0"; iframe.allowTransparency = true; iframe.scrolling = 'no'; iframe.marginheight = '0'; iframe.marginwidth = '0'; document.write(iframe.outerHTML);