Código:
Esta todo bien y se ve bien toda la página pero hay un problema, que al validar el xhtml transitorio me pide que no incluya codigo javascript dentro de un select, hay alguna forma de incluir el codigo sin que haya un script dentrod el select?? <div id="ver-left"><img class="vista" src="http://localhost/fondos/vista/1.jpg" width="310px" height="233px" alt="Vista Previa"/> <div class="separar-ordenados"></div> <div class="texto-ver2">Tamaños Disponibles:</div> <form id="form1" action="http://localhost/fondos/autos/juegosn/aaaa/ver/1/" method="post"> <select name="resolucion" id="resolucion"> <script type="text/javascript"> var res=new Array(); res[1] = "1024x768"; res[2] = "800x600"; res[3] = "1280x800"; res[4] = "1280x1024"; res[5] = "1440x900"; res[6] = "1152x864"; var resol = screen.width + "x" + screen.height; var a = 1; var total = res.length; var estado = false; while(total > a) { if (res[a] == resol) { var estado = true; document.write('<option selected="selected">' + res[a] + '</option>'); break; } a++; } if (estado == false) { document.write('<option selected="selected" value="ninguno"> [Seleccionar Resolucion] </option>'); } </script> <option>1024x768</option> <option>800x600</option> <option>1280x800</option> <option>1280x1024</option> <option>1440x900</option> <option>1152x864</option> </select> <input name="descargar" type="submit" class="conectarse" value="Descargar" /> </form> </div>