Ver Mensaje Individual
  #6 (permalink)  
Antiguo 26/04/2011, 14:36
Avatar de IsaBelM
IsaBelM
Colaborador
 
Fecha de Ingreso: junio-2008
Mensajes: 5.032
Antigüedad: 15 años, 10 meses
Puntos: 1012
Respuesta: Como hace sus frames FACEBOOK

Cita:
Iniciado por netserver Ver Mensaje
Por favor expliqueme como pordia hacer este efecto tan agradable e interesante ;)
no te voy a decir nada de ajax ya que tienes cientos de tutoriales. con respecto a editar el hash la url, prueba este código
Cita:
<!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=utf-8" />
<title>Documento sin título</title>
<script type="text/javascript">
window.onload = function(){alert('este mensaje sólo aparecera esta vez');}
</script>
</head>
<body>
<form>
<input type="button" onclick="location.hash='elhash1'" value="cambiar el hash 1" />
<input type="button" onclick="location.hash='elhash2'" value="cambiar el hash 2" />
</form>
</body>
</html>
cuando cargues la página aparecerá una alerta. después fíjate en la url, presiona un botón y mira de nuevo la url. se ha cambiado el hash, pero la página no se ha recargado. si clickeas en el otro botón, ocurrirá lo mismo