Código Javascript:
Ver original
var peticion = new objetoAjax("GET"); function LoadJS(nomarch) { var d = new Date(); var ele = document.getElementById(nomarch); if (ele == undefined) { var tagjs = document.createElement("script"); tagjs.setAttribute("type", "text/javascript"); tagjs.setAttribute("id", nomarch); tagjs.setAttribute("src", "js/"+nomarch+".js?rnd="+d.getTime()); document.getElementsByTagName("head")[0].appendChild(tagjs); } } function LoadJS1(nomarch) { var d = new Date(); var ele = document.getElementById(nomarch); if (ele == undefined) { var tagjs = document.createElement("script"); tagjs.setAttribute("type", "text/javascript"); tagjs.setAttribute("id", nomarch); tagjs.setAttribute("src", "js/"+nomarch+".js?rnd="+d.getTime()); document.getElementsByTagName("head")[0].appendChild(tagjs); } } function LoadJS2(nomarch) { var d = new Date(); var ele = document.getElementById(nomarch); if (ele == undefined) { var tagjs = document.createElement("script"); tagjs.setAttribute("type", "text/javascript"); tagjs.setAttribute("id", nomarch); tagjs.setAttribute("src", "js/"+nomarch+".js?rnd="+d.getTime()); document.getElementsByTagName("head")[0].appendChild(tagjs); } } function LoadJS3(nomarch) { var d = new Date(); var ele = document.getElementById(nomarch); if (ele == undefined) { var tagjs = document.createElement("script"); tagjs.setAttribute("type", "text/javascript"); tagjs.setAttribute("id", nomarch); tagjs.setAttribute("src", "js/"+nomarch+".js?rnd="+d.getTime()); document.getElementsByTagName("head")[0].appendChild(tagjs); } } function LoadcS(nomarch) { var d = new Date(); var ele = document.getElementById(nomarch); if (ele == undefined) { var tagjs = document.createElement("link"); tagjs.setAttribute("type", "text/css"); tagjs.setAttribute("id", nomarch); tagjs.setAttribute("rel","stylesheet"); tagjs.setAttribute("href", "css/"+nomarch+".css?rnd="+d.getTime()); document.getElementsByTagName("head")[0].appendChild(tagjs); } } function LoadCS(nomarch) { var d = new Date(); var ele = document.getElementById(nomarch); if (ele == undefined) { var tagjs = document.createElement("link"); tagjs.setAttribute("type", "text/css"); tagjs.setAttribute("rel","stylesheet"); tagjs.setAttribute("id", nomarch); tagjs.setAttribute("href", "css/"+nomarch+".css?rnd="+d.getTime()); document.getElementsByTagName("head")[0].appendChild(tagjs); } } function HacerPeticionAjax() { peticion.Finished = respuestaAjax; peticion.Get("index1.html", ""); } function respuestaAjax(status, b, texto, d) { document.getElementById("tabber").innerHTML = texto; LoadcS("datepicker"); LoadCS("layout"); LoadJS("jquery"); LoadJS2("eye"); LoadJS3("layout"); LoadJS1("evento"); }
se que me carga los archivos y los script pero no se muestra como deberia ser si necesitan que les diga mas detales me dicen gracias