Ver Mensaje Individual
  #2 (permalink)  
Antiguo 14/05/2005, 05:37
EUROJAIME
 
Fecha de Ingreso: agosto-2003
Ubicación: Barcelona
Mensajes: 83
Antigüedad: 20 años, 9 meses
Puntos: 0
Para quien le interesa ya lo he solucionado haciendo esto:

tablaInicio += ("<table border=1 align=center width=90%>")
for (var i = 0; i < elems.length; i ++)
{
if ((i % 3) == 0)
{
img += ("<tr>");
}
var el = elems.item(i)
ruta = el.getAttribute("ruta");
titulo = el.getAttribute("titulo");
alt = el.getAttribute("alt");
var evento = 'O['+i+'].clic()';
precio = el.getAttribute("precio");
embalaje = el.getAttribute("embalaje");
codigo = el.getAttribute("id");
datos +=("Código : " + "<strong>" + codigo + "</strong><br> Precio : " + precio + "&nbsp;&nbsp;" + "Embalaje : " + embalaje + "<br>")
inputs += ("<input type='text' maxlength='10' value='1' name=text_" + codigo + " size='8' onClick='msg()'>&nbsp;&nbsp;<a href='resultado.htm' target='_blank'>Enviar Carro</a>")
img+=("<td>" + titulo + "<br><br><img onclick=" + evento + " class=img height=225 width=300 src=" + ruta + "><br>" + datos + inputs +"</td>");
datos = "";
inputs = "";
aux = aux + 1;

if (aux == 3)
{
img += ("<tr>");
aux = 0;
}
}

tablaFin += ("</table>")