http://graffika.pl/viewtopic.php?f=58&t=16739 ;>
php ? jaki to ma z nim związek?
można oczywiście prościej:
dla strony głownej
$(document).ready(function(){
$.ajax({
type: "GET",
url: "menu.php",
success: function(msg) {
$("#news").html(msg);
}
});
});
dla podstron
$("#submenu div").click(function()
{
$("#submenu .active").removeClass("active");
$(this).parent().addClass("active");
var classname = $(this).attr("class");
$("#news").load("menu.php?id="+classname);
}
return false;
});
a w menu.php pobieranie rekordów z bazy danych