2
這裏<現場演示 - http://webcallonline.exoflux.co.uk/html/jQuery動態頁面加載不會工作,不知道爲什麼有什麼想法?
$(function() {
var url = $(this).attr("href");
$("nav").delegate("a", "click", function(event) {
event.preventDefault();
window.location.hash = $(this).attr('href');
$("#main").slideUp('slow', function(){
$("#main").load(url + " #main", function()
{
$("#main").slideDown('slow');
});
});
});
$(window).bind('hashchange', function(){
newHash = window.location.hash.substring(1);
});
$(window).trigger('hashchange');
});
有沒有人有什麼想法?
Thankyou karim79,你的第一個建議修正了:)任何人有任何想法現在如何使頁面加載動態時按下後退按鈕? – Luke 2010-05-16 16:54:32