Learn how to use jQuery at the Blog

Olivier Courbet « visit

  • Added 9 months ago
  • 119 Lines of Code shown
  • 5 Links of Interest
http://oliviercourbet.com
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 Olivier Courbet - http://oliviercourbet.com

$(document).ready( function () {

Shadowbox.init();

$(".hoverimg_description").hover( function () {
	    $('#description_tn' + this.id).slideDown("slow","easeOutQuart");},function () {
        $('#description_tn' + this.id).slideUp("normal","easeInQuart");});


      	$(".hoverfeatured").hover( function () {
	    $('#description_featured' + this.id).slideDown("slow","easeOutQuart");},function () {
        $('#description_featured' + this.id).slideUp("normal","easeInQuart");});
		
		$("#ajax").click(function () {
		$('a.tags_link').removeClass('tag_selected');
		$(this).addClass('tag_selected');
		 $('.description_tn').slideDown("slow","easeOutQuart");
	    $('.ajax').slideUp("slow","easeOutQuart");
		return false
		});
		$("#ps").click(function () {
		$('a.tags_link').removeClass('tag_selected');
		$(this).addClass('tag_selected');
		 $('.description_tn').slideDown("slow","easeOutQuart");
	    $('.ps').slideUp("slow","easeOutQuart");
		return false
		});
		$("#ai").click(function () {
		$('a.tags_link').removeClass('tag_selected');
		$(this).addClass('tag_selected');
		 $('.description_tn').slideDown("slow","easeOutQuart");
	    $('.ai').slideUp("slow","easeOutQuart");
		return false
		});
		$("#fl").click(function () {
		$('a.tags_link').removeClass('tag_selected');
		$(this).addClass('tag_selected');
		 $('.description_tn').slideDown("slow","easeOutQuart");
	    $('.fl').slideUp("slow","easeOutQuart");
		return false
		});
		$("#html").click(function () {
		$('a.tags_link').removeClass('tag_selected');
		$(this).addClass('tag_selected');
		 $('.description_tn').slideDown("slow","easeOutQuart");
	    $('.html').slideUp("slow","easeOutQuart");
		return false
		});
		$("#php").click(function () {
		$('a.tags_link').removeClass('tag_selected');
		$(this).addClass('tag_selected');
		 $('.description_tn').slideDown("slow","easeOutQuart");
	    $('.php').slideUp("slow","easeOutQuart");
		return false
		});
		$("#id").click(function () {
		$('a.tags_link').removeClass('tag_selected');
		$(this).addClass('tag_selected');
		 $('.description_tn').slideDown("slow","easeOutQuart");
	    $('.id').slideUp("slow","easeOutQuart");
		return false
		});
		
	
		
		$("a.viewlist").click(function () {
	    $('.description_tn').slideDown("slow","easeOutQuart");
		return false
		});
		$("a.viewthumbnails").click(function () {
	    $('.description_tn').slideUp("slow","easeOutQuart");
		return false
		}); 
		
		$(".hoverimg_description").click(function () {
		$('#content2').hide(100);
		$('#content2').load('getproject.php?project_id='+ this.id,function(){
		$('#content2').show(500);
		$('.categoryitems').hide(500);
		//}); 
		});
		return false
		}); 
  
  
  $('.prev').livequery(function(){ 
    // use the helper function hover to bind a mouseover and mouseout event 
   $('.prev').hover(function() {
  $('.arrow').fadeIn("normal");}, function() { 
  $('.arrow').fadeOut("fast");}); 
  
  }); 

    $('.next').livequery(function(){ 
    // use the helper function hover to bind a mouseover and mouseout event 
  $('.next').hover(function() {
  $('.arrow2').fadeIn("normal");}, function() { 
  $('.arrow2').fadeOut("fast");}); 
  
  }); 
  

  $(".menuheader").livequery('click', function(event) {
  $("#hometext").fadeOut("fast");
	$("#content2").slideUp(500);
	return false;
});


  $(".back").livequery('click', function(event) {
  	$("#content2").hide(500);

		$('#categoryitems'+ this.id).show(500);
		
	return false;
});


  });