commadelimited « visit
This is my Source Code and I don't want to show it here
View Source Code only (as overlay)
// That code snippet belongs to commadelimited - http://commadelimited.com
$(document).ready(function() {
// load all links in a new window
$('p a').each(function(){
$(this).attr('target','_blank');
});
// the currently loaded section
var curLoaded = 'about';
// start by showing the about us section
$('#contentContainer').animate({
height: 625
},"slow", function(){
// fade in the content
$('#' + curLoaded).fadeIn();
});
// navigation trigger
$('#navbar a').each(function() {
var $this = $(this)
var target = $this.attr('href').split('#')[1];
var $contentContainer = $('#contentContainer');
var oldPos = 201;
var newPos = 625;
// add a click handler to each A tag
$this.click(function(){
// if the container isn't open, then open it...duh!
if ($contentContainer.css('height') == '201px') {
// trigger the animation
$contentContainer.animate({
height: newPos
},"slow", function(){
// fade in the content
$('#' + target).fadeIn();
});
} else {
if (curLoaded == target) {
$contentContainer.animate({
height: oldPos
},"slow", function(){
$('#content div').hide();
});
} else {
$contentContainer.animate({
height: oldPos
},"slow", function(){
$('#content div').hide();
$contentContainer.animate({
height: newPos
},"slow", function(){
$('#' + target).fadeIn();
});
});
}
}
curLoaded = target;
return false;
});
});
// remove the focus lines
$('a').focus( function() { $(this).blur(); } );
});
Syndicate
Categories
Statistics
There are 330 Sites with 745 Links of Interest in 18 Categories. The latest Site was added 4 months ago.
About
This is a project by Sebastian Senf, for his part jQuery user and lover too. Follow me.