var aData = [["VIDEO%20-%20Fries%20topmodel%20Marloes%20Horst%20in%20avant%20garde%20striptease%21", "http://www.sterrenstek.nl/images/0209marloes.jpg/small_sex.gif/MarloesHorst.jpg", "http://head.mannepret.sterrenstek.nl/t11813.html", "1", "Marloes%20Horst", "De%2021-jarige%20Marloes%20Horst%20heeft%20de%20covers%20al%20gesierd%20van%20de%20meest%20belangrijke%20modemagazines%20en%20is%20o..."]]; 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); } } }