Learn how to use jQuery at the Blog

Aenemya « visit

  • Added 7 months ago
  • 93 Lines of Code shown
  • 0 Links of Interest
http://aenemya.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 Aenemya - http://aenemya.com

// AENEMYA.COM JQUERY SCRIPTS

$(document).ready(function(){

    var ua = navigator.userAgent.toLowerCase(); 
    var myBrowsers = { 
        // Déjà détectés en natif par jQuery 
        mozilla: $.browser.mozilla, 
        safari:  $.browser.safari, 
        opera:   $.browser.opera, 
        ie:      $.browser.msie, 
        // Quelques améliorations et ajouts 
        ie6:     $.browser.msie && ($.browser.version < 7), 
        ie7:     $.browser.msie && ($.browser.version == 8), 
        ie8:     $.browser.msie && ($.browser.version > 7), 
        iphone:  /iphone/.test(ua), 
        chrome:  /chrome/.test(ua), 
        firefox: /firefox/.test(ua), 
        webkit:  /webkit/.test(ua), 
        // Détection de plateformes 
        osx:     /mac os x/.test(ua), 
        win:     /win/.test(ua), 
        linux:   /linux/.test(ua) 
    }; 
    $.each(myBrowsers, function(a, b) { 
        if (b) $('html').addClass(a); 
    }); 

	//Remove outline from links
	$("a").click(function(){
		$(this).blur();
	});
    
    $("#menu li a").hover(function(){
      $(this).fadeTo("normal", 0);
      },function(){
        $(this).fadeTo("slow", 1);
    });

    $('.boxgrid.captionfull').hover(function(){
        $(".cover", this).stop().animate({top:'97px'},{queue:false,duration:160});
        }, function() {
	    $(".cover", this).stop().animate({top:'130px'},{queue:false,duration:160});
    });

    $('.boxgrid2.captionfull2').hover(function(){
        $(".cover2", this).stop().animate({top:'88px'},{queue:false,duration:160});
        }, function() {
	    $(".cover2", this).stop().animate({top:'105px'},{queue:false,duration:160});
    });

    $('.boxgrid3.captionfull3').hover(function(){
        $(".cover3", this).stop().animate({top:'57px'},{queue:false,duration:160});
        }, function() {
	    $(".cover3", this).stop().animate({top:'100px'},{queue:false,duration:160});
    });

//GALLERY
    $('.mover').hide();

$('#digitalart,#webdesign,#musicartwork,#otherdesigns').click(function() {
$('#latest').hide();
});

$('#digitalart').click(function() {
$('#webdesign,#musicartwork,#otherdesigns').removeClass("selected");
$(this).addClass("selected");
$('#digital').fadeIn('slow');
$('#web,#music,#other').hide();
});

$('#webdesign').click(function() {
$('#digitalart,#musicartwork,#otherdesigns').removeClass("selected");
$(this).addClass("selected");
$('#web').fadeIn('slow');
$('#digital,#music,#other').hide();
});

$('#musicartwork').click(function() {
$('#digitalart,#webdesign,#otherdesigns').removeClass("selected");
$(this).addClass("selected");
$('#music').fadeIn('slow');
$('#digital,#web,#other').hide();
});

$('#otherdesigns').click(function() {
$('#digitalart,#webdesign,#musicartwork').removeClass("selected");
$(this).addClass("selected");
$('#other').fadeIn('slow');
$('#digital,#web,#music').hide();
});

});