Para pegar código os recomendaria usar herramientas tipo paste.debian.net, pastebin.ca o rafb.com. Será más cómodo :)
On 10/30/07, Ind_Desing <[EMAIL PROTECTED]> wrote: > Jesús Miguel Gimeno, se puede c Ajax > > LINK DE REFERENCIA > http://www.dynamicdrive.com/dynamicindex17/ajaxincludes.htm > > > Dentro del HEAD > > <head> > <script type="text/javascript" src="funcioninclude.js"></script> > </head> > > > > Dentro del BODY > > <body> > > <script type="text/javascript"> > ajaxinclude("pie.html") > </script> > > </body> > > > ARCHIVOS DE INCLUDE > PIE.HTML > <div id="pie"> > <ul> > <li><a href="#">Acerca de Avianca</a> |</li> > <li><a href="#">Contáctanos</a> |</li> > </ul> <p class="verisign"><img src="images/veri-sign.jpg" > alt="VeriSign Secure Site" /></p> > <p class="w3c-validated"><img src="images/logo-wc3.png" alt="W3C XHTML > 1.0 Strict Valid" /></p> > <p class="copyright">Empresa - 2005 Copyright © Todos los derechos > reservados <a href="#">Terminos de Uso y Condiciones Legales</a></p> > </div> > > Otros link q pueden ser > utileshttp://www.phpied.com/files/jinc/Luis/test.htmlhttp://anthonyryan.net/ajax-include/SldsEspero > q te sirva------- > FUNCTION.JS > ------- > /*********************************************** > > * Ajax Includes script- (c) Dynamic Drive DHTML code library > (www.dynamicdrive.com) > > * This notice MUST stay intact for legal use > > * Visit Dynamic Drive at http://www.dynamicdrive.com/ for full source code > > ***********************************************/ > > > > //To include a page, invoke ajaxinclude("afile.htm") in the BODY of page > > //Included file MUST be from the same domain as the page displaying it. > > > > var rootdomain="http://"+window.location.hostname > > > > function ajaxinclude(url) { > > var page_request = false > > if (window.XMLHttpRequest) // if Mozilla, Safari etc > > page_request = new XMLHttpRequest() > > else if (window.ActiveXObject){ // if IE > > try { > > page_request = new ActiveXObject("Msxml2.XMLHTTP") > > } > > catch (e){ > > try{ > > page_request = new ActiveXObject("Microsoft.XMLHTTP") > > } > > catch (e){} > > } > > } > > else > > return false > > page_request.open('GET', url, false) //get page synchronously > > page_request.send(null) > > writecontent(page_request) > > } > > > > function writecontent(page_request){ > > if (window.location.href.indexOf("http")==-1 || page_request.status==200) > > document.write(page_request.responseText) > > } > > > > _______________________________________________ > Lista de distribución Ovillo > Para escribir a la lista, envia un correo a Ovillo@lists.ovillo.org > Puedes modificar tus datos o desuscribirte en la siguiente dirección: > http://lists.ovillo.org/mailman/listinfo/ovillo > -- tac822.net MusicaLliure.net _______________________________________________ Lista de distribución Ovillo Para escribir a la lista, envia un correo a Ovillo@lists.ovillo.org Puedes modificar tus datos o desuscribirte en la siguiente dirección: http://lists.ovillo.org/mailman/listinfo/ovillo