Learn how to use jQuery at the Blog

5emegauche « visit

  • Added 9 months ago
  • 35 Lines of Code shown
  • 2 Links of Interest
http://5emegauche.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 5emegauche - http://5emegauche.com

$(document).ready(function(){
	$("#header ul li").hover(function(){
	   $(this).children("span").fadeIn("600");
	 },function(){
	   $(this).children("span").fadeOut("600");
	 });
	
	
	$(".bk-projet").hover(function(){
	   $(this).children(".present-projet").stop().animate({bottom:'-1px'},{queue:false,duration:160});
	$(this).children('.img-hover').fadeIn('500');
	 },function(){
	   $(this).children(".present-projet").stop().animate({bottom:'-20px'},{queue:false,duration:160});
		$(this).children(".img-hover").fadeOut("fast");
	 });
	
	
	
	$(".bk-projet.link-externe").click(function(){
		var link = $(this).find("a");
		var linkLocation = $(link).attr("href");
		window.open(linkLocation);
		return false;
	});	
	
	$(".bk-projet.link-interne").click(function(){
    	window.location=$(this).find("a").attr("href");return false;
	});
	

	$(".#header h1").click(function(){
		window.location=$(this).find("a").attr("href");return false;
	});

});