Dejo el codigo:
Código:
<script type="text/javascript" src="js/jquery.js" ></script>
<script type="text/javascript">
$(document).ready(function(){
//obtener hash
var jash = window.location.hash;
// comprobamos si existe un hash valido
if(jash.length > 1){
// si existe buscamos el enlace que contiene ese hash en el href y cojemos su atributo "title"
var href = $("a[@href="+jash+"]").attr("title");
// cargamos la página que se solicita vía hash
$("#show").load(href);
}
//######
//código del menu, nada nuevo aquí
$("#nav a").click(function(){
var href = $(this).attr("title");
$('#show').html('<img src=loading.gif>').load(href);
});
});
</script>
<ul id="nav">
<li><a href="#m=enlace1" title="pag_1.php">Enlace 1</a></li>
<li><a href="#m=enlace2" title="pag_2.php">Enlace 2</a></li>
</ul>
<div id="show"></div>


