help with my web history
help with my web history
Hellow, may be someone could help me to enable the use of butttons back and forward of the browser in my example, I imagine there is some plugin for this, but I don't know it.
Source code and the zip file with the complete example
<!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>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Ejemplo</title>
<style type="text/css">
#principal{
width:800px;
height:400px;
border:1px solid #003399;
}
#menu{
width:800px;
height:20px;
border-bottom:1px solid #003399;
}
</style>
<script type="text/javascript" src="js/jquery-1.3.2.min.js"></script>
<script type="text/javascript" src="js/jquery.history_remote.js"></script>
<script type="text/javascript">
$(document).ready(function(){
$('#menu a').each(function(){
var href = $(this).attr("href");
$(this).attr({ href: "#"});
$(this).click(function(){
$("#contenido").load(href);
});
});
//---------------------------------
});
</script>
</head>
<body>
<div id="principal">
<div id="menu">
<a href="paginas/pagina1.html">Pagina 1</a>
<a href="paginas/pagina2.html">Pagina 2</a>
<a href="paginas/pagina3.html">Pagina 3</a>
</div>
<div id="contenido">
</div>
</div>
</body>
</html>