Código:
Código:
<script language="JavaScript" type="text/javascript"> // <![CDATA[ function doPic(imgName) { imgOn = ("" + imgName); document.mainpic.src = imgOn; } function tamanyo(nombre,ruta){ var imagen = new Array(); imagen[0] = new Image(); imagen[1] = new Image(); imagen[0].src =ruta; if (imagen[0].width>imagen[0].height){ return("width='50'"); } else { return("height='30'"); } } // ]]> </script> <table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr> <td style="text-align:center"><table border="0" cellspacing="0" cellpadding="0" class="subFormulario" width="100%"> <tr class="celdai"> <td style="text-align:center" ><table width="50%" > <tr> <td width="100%" > </td> <td class="celdai"><script language="JavaScript" type="text/javascript"> // <![CDATA[ var altoancho=tamanyo('foto1','http://www.aemet.es/imagenes_d/eltiempo/prediccion/modelos_num/hirlam/ww_isx0c206.gif'); document.write('<a href=javascript:doPic("http://www.aemet.es/imagenes_d/eltiempo/prediccion/modelos_num/hirlam/ww_isx0c206.gif")><FONT size="4" color="green"></FONT>') document.write("<img name='foto1' src='http://img85.imageshack.us/img85/6296/76324152.png' " + altoancho + "border='0' />"); // ]]> </script></td> <td class="celdai"><script language="JavaScript" type="text/javascript"> // <![CDATA[ var altoancho=tamanyo('foto2','http://www.aemet.es/imagenes_d/eltiempo/prediccion/modelos_num/hirlam/ww_isx0c212.gif'); document.write('<a href=javascript:doPic("http://www.aemet.es/imagenes_d/eltiempo/prediccion/modelos_num/hirlam/ww_isx0c212.gif")><FONT size="4" color="red"></FONT>') document.write("<img name='foto2' src='http://img294.imageshack.us/img294/6637/61512473.png' " + altoancho + "border='0' />"); // ]]> </script></td> <td class="celdai"><script language="JavaScript" type="text/javascript"> // <![CDATA[ var altoancho=tamanyo('foto3','http://www.aemet.es/imagenes_d/eltiempo/prediccion/modelos_num/hirlam/ww_isx0c218.gif'); document.write('<a href=javascript:doPic("http://www.aemet.es/imagenes_d/eltiempo/prediccion/modelos_num/hirlam/ww_isx0c218.gif")><FONT size="4" color="red"></FONT>') document.write("<img name='foto3' src='http://img504.imageshack.us/img504/7157/96649622.png' " + altoancho + "border='0' />"); // ]]> </script></td> <td class="celdai"><script language="JavaScript" type="text/javascript"> // <![CDATA[ var altoancho=tamanyo('foto4','http://www.aemet.es/imagenes_d/eltiempo/prediccion/modelos_num/hirlam/ww_isx0c2d1.gif'); document.write('<a href=javascript:doPic("http://www.aemet.es/imagenes_d/eltiempo/prediccion/modelos_num/hirlam/ww_isx0c2d1.gif")><FONT size="4" color="red"></FONT>') document.write("<img name='foto1' src='http://img704.imageshack.us/img704/6637/58787205.png' " + altoancho + "border='0' />"); // ]]> </script></td> <td class="celdai"><script language="JavaScript" type="text/javascript"> // <![CDATA[ var altoancho=tamanyo('foto4','http://www.aemet.es/imagenes_d/eltiempo/prediccion/modelos_num/hirlam/ww_isx0c230.gif'); document.write('<a href=javascript:doPic("http://www.aemet.es/imagenes_d/eltiempo/prediccion/modelos_num/hirlam/ww_isx0c230.gif")><FONT size="4" color="red"></FONT>') document.write("<img name='foto1' src='http://img693.imageshack.us/img693/1988/97985661.png' " + altoancho + "border='0' />"); // ]]> </script></td> <td class="celdai"><script language="JavaScript" type="text/javascript"> // <![CDATA[ var altoancho=tamanyo('foto4','http://www.aemet.es/imagenes_d/eltiempo/prediccion/modelos_num/hirlam/ww_isx0c2c1.gif'); document.write('<a href=javascript:doPic("http://www.aemet.es/imagenes_d/eltiempo/prediccion/modelos_num/hirlam/ww_isx0c2c1.gif")><FONT size="4" color="red"></FONT>') document.write("<img name='foto1' src='http://img200.imageshack.us/img200/3174/32963847.png' " + altoancho + "border='0' />"); // ]]> </script></td> <td class="celdai"><script language="JavaScript" type="text/javascript"> // <![CDATA[ var altoancho=tamanyo('foto2','http://www.aemet.es/imagenes_d/eltiempo/prediccion/modelos_num/hirlam/ww_isx0c242.gif'); document.write('<a href=javascript:doPic("http://www.aemet.es/imagenes_d/eltiempo/prediccion/modelos_num/hirlam/ww_isx0c242.gif")><FONT size="4" color="red"></FONT>') document.write("<img name='foto2' src='http://img651.imageshack.us/img651/4511/81392537.png' " + altoancho + "border='0' />"); // ]]> </script></td> <td class="celdai"><script language="JavaScript" type="text/javascript"> // <![CDATA[ var altoancho=tamanyo('foto2','http://www.aemet.es/imagenes_d/eltiempo/prediccion/modelos_num/hirlam/ww_isx0c2d2.gif'); document.write('<a href=javascript:doPic("http://www.aemet.es/imagenes_d/eltiempo/prediccion/modelos_num/hirlam/ww_isx0c2d2.gif")><FONT size="4" color="red"></FONT>') document.write("<img name='foto2' src='http://img27.imageshack.us/img27/193/34277347.png' " + altoancho + "border='0' />"); // ]]> </script></td> <td class="celdai"><script language="JavaScript" type="text/javascript"> // <![CDATA[ var altoancho=tamanyo('foto2','http://www.aemet.es/imagenes_d/eltiempo/prediccion/modelos_num/hirlam/ww_isx0c254.gif'); document.write('<a href=javascript:doPic("http://www.aemet.es/imagenes_d/eltiempo/prediccion/modelos_num/hirlam/ww_isx0c254.gif")><FONT size="4" color="red"></FONT>') document.write("<img name='foto2' src='http://img64.imageshack.us/img64/1740/92627381.png' " + altoancho + "border='0' />"); // ]]> </script></td> <td class="celdai"><script language="JavaScript" type="text/javascript"> // <![CDATA[ var altoancho=tamanyo('foto2','http://www.aemet.es/imagenes_d/eltiempo/prediccion/modelos_num/hirlam/ww_isx0c2c2.gif'); document.write('<a href=javascript:doPic("http://www.aemet.es/imagenes_d/eltiempo/prediccion/modelos_num/hirlam/ww_isx0c2c2.gif")><FONT size="4" color="red"></FONT>') document.write("<img name='foto2' src='http://img41.imageshack.us/img41/1158/79969662.png' " + altoancho + "border='0' />"); // ]]> </script></td> <td class="celdai"><script language="JavaScript" type="text/javascript"> // <![CDATA[ var altoancho=tamanyo('foto2','http://www.aemet.es/imagenes_d/eltiempo/prediccion/modelos_num/hirlam/ww_isx0c266.gif'); document.write('<a href=javascript:doPic("http://www.aemet.es/imagenes_d/eltiempo/prediccion/modelos_num/hirlam/ww_isx0c266.gif")><FONT size="4" color="red"></FONT>') document.write("<img name='foto2' src='http://img687.imageshack.us/img687/792/99752808.png' " + altoancho + "border='0' />"); // ]]> </script></td> <td class="celdai"><script language="JavaScript" type="text/javascript"> // <![CDATA[ var altoancho=tamanyo('foto2','http://www.aemet.es/imagenes_d/eltiempo/prediccion/modelos_num/hirlam/ww_isx0c2d3.gif'); document.write('<a href=javascript:doPic("http://www.aemet.es/imagenes_d/eltiempo/prediccion/modelos_num/hirlam/ww_isx0c2d3.gif")><FONT size="4" color="red"></FONT>') document.write("<img name='foto2' src='http://img130.imageshack.us/img130/8888/53494076.png' " + altoancho + "border='0' />"); // ]]> </script></td> <td width="50%" > </td> </tr> </table></td> </tr> </table></td> </tr> <tr> <td colspan="3" style="text-align:center"><br /> <img src="" alt="" name="mainpic" id="mainpic" /><br /> <br /></td> </tr> </table></td> </tr>
Alguien me puede ayudar ? ... Gracias!