Estoy usando Firefox.
ahí va mi pastelada:
Código HTML:
Ver original<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"> <head lang="" xml:lang=""> <meta http-equiv="content-type" content="text/html; charset=iso-8859-1" /> <link rel="stylesheet" type="text/css" href="css/basic.css" /> <script type="text/javascript" src="Javascript/jquery-1.3.2.js"></script> <script type="text/javascript" src="Javascript/funciones.js"></script>
<div class="opaco" style="margin-top: 10px; margin-left: 35px;">
<img width="25%;" title="PELITECA;" src="Imagenes/PELITECA.gif" alt="PELITECA"/> <div class="transparente" style="border-bottom: solid 1px;"> <html xmlns="http://www.w3.org/1999/xhtml"> <div class="opaco" style="padding-left:40px; width: 200px; float: left; height: 600px;"> <div class="link mt10"><a href="#;" title="Introducir película">NUEVA PEL
ÍCULA
</a></div> <div class="link mt10"><a href="#;" title="Lista de películas">LISTADO DE PEL
ÍCULAS
</a></div>
<div class="transparente" style="width: 20%; float: left; height: 600px; border-right: solid 1px;"></div> <div style="width: 79.9%; float: left; height: 600px;"> <div id="subtitulo" style="text-align:center; width:100%; text-indent:inherit" > <h1>Introducir Nueva Pel
ícula
<h1> <div id="formulario" style="background-color:#CCCCCC; width:90%; margin-left:60px;">
<div style="padding:10px;"> <form id="introducir" method="post" action="funciones/insertarPeli.php"> <div> <input type="text" maxlength="200" name="titulo"/> </div>
<div> <input type="text" maxlength="4" id="anyo" name="anyo"/> </div>
<div> <input type="text" maxlength="4" id="duracion" name="duracion"/> </div> minutos
<select style='float:left;'id= 'pais' name='pais' onchange='javascript:insertar_nuevo_pais()'><option value='-'>Escoje una opci
ón
</option><option value='00'>- A
ñadir otro pa
ís -
</option><option selected value='11'>BACABURRRA
<option selected value='12'>BACABURRRA2
<option selected value='13'>BACABURRRA3
<option selected value='14'>BACABURRRA4
<option selected value='15'>BACABURRRA5
<option selected value='17'>BACABURRRA6
<option selected value='16'>BACABURRRA6
<option selected value='4'>Catalunya
<option selected value='3'>Espa
ña
<option selected value='6'>Francia
<option selected value='8'>Francia
<option selected value='7'>Francia
<option selected value='5'>Italia
<option selected value='9'>nexus
<option selected value='1'>Portugal
<option selected value='2'>USA
<option selected value='10'>vivivivivivi
</select> </div> <div id="insertar_pais" style="margin-left:5px;float:left;display:none; width: 200px;"> <input type="text" id="paisNuevo" name="paisNuevo" />
<button style= "float:none;margin-left:5px;" type="button" onclick="javascript:inesrtarPais()"> +
</button>
<script type="text/javascript"> function insertar_nuevo_pais(){
if($("#pais").val()==00){
$("#insertar_pais").show();
$("#pais option:eq(0)").attr("selected", "selected");
}else {
$("#insertar_pais").hide();
}
}
function inesrtarPais(){
var pais = document.getElementById("paisNuevo").value; // aqui esta la var nombre_div
ajax = getXMLHttpRequest();
ajax.onreadystatechange = function() {
if(ajax.readyState == 4) {
cont.innerHTML = ajax.responseText;
}
}
//ajax.open('GET', 'funciones/insertarPais.php?paisNuevo=' +pais , false);
//ajax.send(null);
$.post('funciones/insertarPais.php', {'paisNuevo': pais}, callback:function(){
regarga();
});
//var valido=ajax.responseText;
// if (valido=="OK "){
// }
/* var getNuevoCombo=$("#paisNuevo").val();
getNuevoCombo="
<option value='XX' selected='true'>"+getNuevoCombo+"
</option>";
$("#pais").append(getNuevoCombo);
$("#insertar_pais").hide();
*/}
function recarga() {
$("#insertar_pais").hide();
$("#zonaPais").html("
<select style='float:left;'id= 'pais' name='pais' onchange='javascript:insertar_nuevo_pais()'><option value='-'>Escoje una opci
ón
</option><option value='00'>- A
ñadir otro pa
ís -
</option><option selected value='11'>BACABURRRA
<option selected value='12'>BACABURRRA2
<option selected value='13'>BACABURRRA3
<option selected value='14'>BACABURRRA4
<option selected value='15'>BACABURRRA5
<option selected value='17'>BACABURRRA6
<option selected value='16'>BACABURRRA6
<option selected value='4'>Catalunya
<option selected value='3'>Espa
ña
<option selected value='6'>Francia
<option selected value='8'>Francia
<option selected value='7'>Francia
<option selected value='5'>Italia
<option selected value='9'>nexus
<option selected value='1'>Portugal
<option selected value='2'>USA
<option selected value='10'>vivivivivivi
</select>");
}