/* i-mobile for PC client script */ window.onload = function(){ var ad = document.getElementById('ad') || document.getElementById('ad2'); if (ad) { var div = document.createElement('div'); div.setAttribute('style', 'text-align: left; margin-bottom:10px; font-size: 12px;'); div.innerHTML = 'Ads by livedoor'; ad.appendChild(div); var ad_iframe = document.createElement('iframe'); ad_iframe.setAttribute('width', '300'); ad_iframe.setAttribute('height', '250'); ad_iframe.setAttribute('frameborder', '0'); ad_iframe.setAttribute('marginheight', '0'); ad_iframe.setAttribute('marginwidth', '0'); ad_iframe.setAttribute('scrolling', 'no'); ad_iframe.setAttribute('hspace', '0'); ad_iframe.setAttribute('vspace', '0'); ad_iframe.setAttribute('allowtransparency', 'true'); var html = '
'; var blob = new Blob([html], { type: 'text/html' }); ad_iframe.src = URL.createObjectURL(blob); ad.appendChild(ad_iframe); ad.style.display = 'block'; } };