function IsGecko(){ if(navigator){ if(navigator.userAgent){ if(navigator.userAgent.indexOf("Gecko/") != -1){ return true; } } } return false; } var div = document.createElement('div') var ul = document.createElement('ul') var site_name = ec106.posts.site_name; div.style.border = 'solid 2px #FFffce' div.style.fontSize = '12px' div.style.backgroundColor = '#FFFFFF' div.style.width = '992px' div.style.padding = '0' div.style.textAlign = 'left' div.style.lineHeight = '1.1' if( typeof(ec106.posts.movies ) != 'undefined' ) { for (var i=0, item; item = ec106.posts.movies[i]; i++) { if(i >= 8){ break; } var cell = document.createElement('div') var a = document.createElement('a') var img = document.createElement('img') if(IsGecko()) { cell.style.cssFloat = 'left' } else { cell.style.styleFloat = 'left' } cell.style.width = '122'+'px' cell.style.height = '215'+'px' cell.style.padding = '1px' cell.style.margin = '0' cell.style.overflow = 'hidden' a.setAttribute('href', 'http://www.sbs-ad.com/track/traffic.php?c=13890-3010-106&u=' + item.link) a.setAttribute('target', '_blank') a.style.color = '#000000' a.style.fontSize = '110%' a.style.fontWeight = 'bold' img.setAttribute('src', item.square) img.style.borderStyle = 'none' img.style.width = '120' img.style.height = '90' a.appendChild(img) a.appendChild(document.createElement('br')) a.appendChild(document.createTextNode(item.m_title)) cell.appendChild(a) cell.appendChild(document.createElement('br')) cell.appendChild(document.createTextNode('Date: ')) cell.appendChild(document.createTextNode(item.date)) cell.appendChild(document.createElement('br')) cell.appendChild(document.createTextNode(item.comment)) div.appendChild(cell) } var clr = document.createElement('div') clr.style.clear = 'both' div.appendChild(clr) div.appendChild(document.createElement('br')) var sbslink = document.createElement('a') sbslink.setAttribute('href', 'http://www.sbs-ad.com/?c='+'13890'+'-9696-1') sbslink.setAttribute('target', '_blank') sbslink.style.color = '#000000' sbslink.appendChild(document.createTextNode('Powered by SBS')) sbslink.style.clear = 'both' div.appendChild(sbslink) document.getElementById('6338').appendChild(div) }