$(document).on('ready', function() { // click functions $("[href='#about']").click(function(){ $("#main").load("../about.php"); }); $("[href='#contact']").click(function(){ $("#main").load("../contact.php"); }); }); });
$.address.change(function(event) { $('#main').load('../' + event.value + '.php'); }); $('a').click(function() { $.address.value($(this).attr('href')); });
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)