Animated Content -script-

language: jQuery (JavaScript)
license: Unknown

Code for Snippet:

$(document).ready(function() {
	var hash = window.location.hash.substr(1);
	var href = $('#nav li a').each(function(){
		var href = $(this).attr('href');
			var toLoad = hash+'.html #content';
	$('#nav li a').click(function(){
		var toLoad = $(this).attr('href')+' #content';
		$('#wrapper').append('<span id="load">LOADING...</span>');
		window.location.hash = $(this).attr('href').substr(0,$(this).attr('href').length-5);
		function loadContent() {
		function showNewContent() {
		function hideLoader() {
		return false;
comments powered by Disqus


Tags: navigation

Link to this snippet:

Download to Code Collector

To use the direct link to your snippet on either copy the html from the above section or drag the Download to Code Collector to where you would like to use it.

More Info:

Times Viewed: 375
Date Added: 2009-08-15 11:44:33
Last Modified: 0000-00-00 00:00:00

Web Analytics