Gracias.
Codigo javascript
Código:
Codigo html$(document).ready(function() { $("#news a").click(function() { evento.preventDefault(); href = $(this).attr('href'); $("#Based").load(href); }); });
Código HTML:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title>Panel de administración (Cafetería Sucré)</title> <meta charset="UTF-8" /> <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"> <link rel="stylesheet" type="text/css" href="scripts/style.css" /> <script type="text/javascript" src="scripts/jquery.min.js"></script> <script type="text/javascript" src="scripts/scripts.js"></script> </head> <div id="menu" class="m-top"> <div class="sec"><a id="news" href="modules/news.php">NOTICIAS</a></div> <div class="sec"><a href="#">GALERIA</a></div> <div class="sec"><a href="#">COCTELERIA</a></div> <div class="sec"><a href="#">EVENTOS</a></div> <div class="sec"><a href="#">CONTACTO</a></div> <div class="fin-sec"></div> </div> <div id="Based" class="m-bottom"></div>