var iframe=document.createElement('iframe'); iframe.src = "//ad.lomadee.com/banner/view?sourceId=36024132&dimension=32&width=600&height=1,200&method=0&advertisers=&tags="; iframe.style='width: 600px;height: 1,200px'; 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);