var aData = [["Constanza%20Breukhoven%20lucht%20haar%20hart%20", "http://www.sterrenstek.nl/images/0909coenmo.jpg/small_drama.gif/ConstanzaenhaarmanMo.jpg", "http://head.mannepret.sterrenstek.nl/t12051.html", "6", "Constanza%20en%20haar%20man%20Mo", "Is%20het%20wraak%3F%20Is%20het%20een%20afrekening%3F%20Is%20het%20frustratie%3F%20Feit%20is%20dat%20de%20ergste%20nachtmerrie%20van%20Connie..."]]; var bShowImage = false; var sTextColor = '#FF0000'; var sTextSize = 11; var sBlockcolor = '#'; var iDesc = 1; var doc = document; function drawBanner() { var oDiv = doc.getElementById('div_sterrenstek'); var oTable = doc.createElement('table'); oDiv.appendChild(oTable); oTbody = doc.createElement('tbody'); oTable.appendChild(oTbody); for (var i = 0; i < aData.length; i++) { oTr = doc.createElement('tr'); oTbody.appendChild(oTr); if (bShowImage) { oTdL = doc.createElement('td'); oTdL.style.background = sBlockcolor oTdL.style.width = 30; oTdL.style.verticalAlign = 'top'; oTr.appendChild(oTdL); oImage = doc.createElement('img'); oImage.style.float = 'left'; oImage.src = aData[i][1]; oImage.style.border = 0; oImage.style.width = '50px' oImage.style.height = '50px' oTdL.appendChild(oImage); } oTd = doc.createElement('td'); oTr.appendChild(oTd); oTextDiv = doc.createElement('div'); oTextDiv.style.fontFamily = 'Verdana, Arial, Helvetica, sans-serif'; oTextDiv.style.fontSize = sTextSize; oTextDiv.style.color = sTextColor; if(sBlockcolor != '#'){ oTextDiv.style.background = sBlockcolor; } oTd.appendChild(oTextDiv); oTitleLink = doc.createElement('a'); // Titel oTitleLink.innerHTML = unescape(aData[i][0]); oTitleLink.style.fontWeight = 'bold'; oTitleLink.style.color = sTextColor; oTitleLink.style.textDecoration = 'none'; oTitleLink.href = aData[i][2]; oTitleLink.target = '_blank'; oTitleLink.onmouseover = function() { this.style.cursor = 'pointer'; this.style.textDecoration = 'underline'; } oTitleLink.onmouseout = function() { this.style.textDecoration = 'none'; } oTextDiv.appendChild(oTitleLink); oTextDiv.appendChild(doc.createElement('br')); if(iDesc == '1'){ oTextLink = doc.createElement('a'); // Text oTextLink.innerHTML = unescape(aData[i][5]); oTextLink.style.color = sTextColor; oTextLink.style.textDecoration = 'none'; oTextLink.href = aData[i][2]; oTextLink.target = '_blank'; oTextLink.onmouseover = function() { this.style.cursor = 'pointer'; this.style.textDecoration = 'underline'; } oTextLink.onmouseout = function() { this.style.textDecoration = 'none'; } oTextDiv.appendChild(oTextLink); } } }