Código:
El error segun el depurador del ie esta en esta linea:function patrocina(){ var usados = new Array(23); var num = 0; var contador = 0; function dameNumero(min, max) { return Math.floor(Math.random() * (max - min + 1)) + min; } document.write("<table><tr>"); for(i=0; i<usados.length; i++){ num = dameNumero(1,23); if(usados.indexOf(num) != -1){ i--; } else{ if(contador%2 == 0){ document.write("</tr><tr>"); } if(num == 2){ document.write("<td><a href='http://www.cantalejo.com/tienda/' target='_blank'><img src='http://www.elcantal.es/wp-content/uploads/2012/02/"+ num +".jpg' title='CANTALEJO.COM' width='300' height='187' class='alignnone size-medium wp-image-878' style='border-image: initial; border-width: 1px; border-color: black; border-style: solid; margin: 5px;'></a></td>"); contador ++; usados[i] = num; } if(num == 3){ document.write("<td><a href='http://www.centroveterinariocantalejo.com/' target='_blank'><img src='http://www.elcantal.es/wp-content/uploads/2012/02/"+ num +".jpg' title='Centro Veterinario' width='300' height='187' class='alignnone size-medium wp-image-878' style='border-image: initial; border-width: 1px; border-color: black; border-style: solid; margin: 5px;'></a></td>"); contador ++; usados[i] = num; } if(num == 5){ document.write("<td><a href='http://deportessanz.com/' target='_blank'><img src='http://www.elcantal.es/wp-content/uploads/2012/02/"+ num +".jpg' title='Deportes Sanz' width='300' height='187' class='alignnone size-medium wp-image-878' style='border-image: initial; border-width: 1px; border-color: black; border-style: solid; margin: 5px;'></a></td>"); contador ++; usados[i] = num; } if(num == 10){ document.write("<td><a href='http://www.hoasis.es/' target='_blank'><img src='http://www.elcantal.es/wp-content/uploads/2012/02/"+ num +".jpg' title='Hoasis.es' width='300' height='187' class='alignnone size-medium wp-image-878' style='border-image: initial; border-width: 1px; border-color: black; border-style: solid; margin: 5px;'></a></td>"); contador ++; usados[i] = num; } if(num == 20){ document.write("<td><a href='http://www.dia.es/' target='_blank'><img src='http://www.elcantal.es/wp-content/uploads/2012/02/"+ num +".jpg' title='dia.es' width='300' height='187' class='alignnone size-medium wp-image-878' style='border-image: initial; border-width: 1px; border-color: black; border-style: solid; margin: 5px;'></a></td>"); contador ++; usados[i] = num; } if(num == 21){ document.write("<td><a href='http://www.terrazoscantalejo.com/' target='_blank'><img src='http://www.elcantal.es/wp-content/uploads/2012/02/"+ num +".jpg' title='Terrazos Cantalejo' width='300' height='187' class='alignnone size-medium wp-image-878' style='border-image: initial; border-width: 1px; border-color: black; border-style: solid; margin: 5px;'></a></td>"); contador ++; usados[i] = num; } if(num != 2 && num != 5 && num != 10 && num != 20 && num != 21 && num != 3){ usados[i] = num; document.write("<td><img src='http://www.elcantal.es/wp-content/uploads/2012/02/" + num + ".jpg' width='300' height='187' class='alignnone size-medium wp-image-878' style='border-image: initial; border-width: 1px; border-color: black; border-style: solid; margin: 5px;'/></td>"); contador++; } } } document.write("</table>"); }
if(usados.indexOf(num) != -1){
Alguna sugerencia?