Difference between revisions of "Team:SSTi-SZGD/js/header"

(Created page with "nav: $(function(){ $(".header .nav .mainnav").eq(1).hover(function(){ $(".header .nav .Team span").css({"border-top":" 4px solid #FAEE0D","color": "#FAEE0D"}); $(".h...")
 
Line 3: Line 3:
 
 
 
$(".header .nav .mainnav").eq(1).hover(function(){
 
$(".header .nav .mainnav").eq(1).hover(function(){
$(".header .nav .Team span").css({"border-top":" 4px solid #FAEE0D","color": "#FAEE0D"});
+
$(".header .nav .Team span").css("color","#FAEE0D");
 
$(".header .nav .Team .unify").stop().slideDown();
 
$(".header .nav .Team .unify").stop().slideDown();
 
},function(){
 
},function(){
$(".header .nav .Team span").css({"border-top":" 4px solid rgba(255,255,255,0)","color": "#fff"});
+
$(".header .nav .Team span").css("color","#fff");
 
$(".header .nav .Team .unify").stop().slideUp();
 
$(".header .nav .Team .unify").stop().slideUp();
 
});
 
});
 
 
 
$(".header .nav .mainnav").eq(2).hover(function(){
 
$(".header .nav .mainnav").eq(2).hover(function(){
$(".header .nav .Project span").css({"border-top":" 4px solid #FAEE0D","color": "#FAEE0D"});
+
$(".header .nav .Project span").css("color","#FAEE0D");
 
$(".header .nav .Project .unify").stop().slideDown();
 
$(".header .nav .Project .unify").stop().slideDown();
 
},function(){
 
},function(){
$(".header .nav .Project span").css({"border-top":" 4px solid rgba(255,255,255,0)","color": "#fff"});
+
$(".header .nav .Project span").css("color","#fff");
 
$(".header .nav .Project .unify").stop().slideUp();
 
$(".header .nav .Project .unify").stop().slideUp();
 
});
 
});
 
 
 
$(".header .nav .mainnav").eq(3).hover(function(){
 
$(".header .nav .mainnav").eq(3).hover(function(){
$(".header .nav .Parts span").css({"border-top":" 4px solid #FAEE0D","color": "#FAEE0D"});
+
$(".header .nav .Parts span").css("color","#FAEE0D");
 
$(".header .nav .Parts .unify").stop().slideDown();
 
$(".header .nav .Parts .unify").stop().slideDown();
 
},function(){
 
},function(){
$(".header .nav .Parts span").css({"border-top":" 4px solid rgba(255,255,255,0)","color": "#fff"});
+
$(".header .nav .Parts span").css("color","#fff");
 
$(".header .nav .Parts .unify").stop().slideUp();
 
$(".header .nav .Parts .unify").stop().slideUp();
 
});
 
});
 
 
 
$(".header .nav .mainnav").eq(4).hover(function(){
 
$(".header .nav .mainnav").eq(4).hover(function(){
$(".header .nav .Human_Practices span").css({"border-top":" 4px solid #FAEE0D","color": "#FAEE0D"});
+
$(".header .nav .Human_Practices span").css("color","#FAEE0D");
 
$(".header .nav .Human_Practices .unify").stop().slideDown();
 
$(".header .nav .Human_Practices .unify").stop().slideDown();
 
},function(){
 
},function(){
$(".header .nav .Human_Practices span").css({"border-top":" 4px solid rgba(255,255,255,0)","color": "#fff"});
+
$(".header .nav .Human_Practices span").css("color","#fff");
 
$(".header .nav .Human_Practices .unify").stop().slideUp();
 
$(".header .nav .Human_Practices .unify").stop().slideUp();
 
});
 
});
 
 
 
$(".header .nav .mainnav").eq(5).hover(function(){
 
$(".header .nav .mainnav").eq(5).hover(function(){
$(".header .nav .Awards span").css({"border-top":" 4px solid #FAEE0D","color": "#FAEE0D"});
+
$(".header .nav .Awards span").css("color","#FAEE0D");
 
$(".header .nav .Awards .unify").stop().slideDown();
 
$(".header .nav .Awards .unify").stop().slideDown();
 
},function(){
 
},function(){
$(".header .nav .Awards span").css({"border-top":" 4px solid rgba(255,255,255,0)","color": "#fff"});
+
$(".header .nav .Awards span").css("color","#fff");
 
$(".header .nav .Awards .unify").stop().slideUp();
 
$(".header .nav .Awards .unify").stop().slideUp();
 
});
 
});
 
 
 
});
 
});

Revision as of 07:35, 26 July 2017

/*nav*/ $(function(){

$(".header .nav .mainnav").eq(1).hover(function(){ $(".header .nav .Team span").css("color","#FAEE0D"); $(".header .nav .Team .unify").stop().slideDown(); },function(){ $(".header .nav .Team span").css("color","#fff"); $(".header .nav .Team .unify").stop().slideUp(); });

$(".header .nav .mainnav").eq(2).hover(function(){ $(".header .nav .Project span").css("color","#FAEE0D"); $(".header .nav .Project .unify").stop().slideDown(); },function(){ $(".header .nav .Project span").css("color","#fff"); $(".header .nav .Project .unify").stop().slideUp(); });

$(".header .nav .mainnav").eq(3).hover(function(){ $(".header .nav .Parts span").css("color","#FAEE0D"); $(".header .nav .Parts .unify").stop().slideDown(); },function(){ $(".header .nav .Parts span").css("color","#fff"); $(".header .nav .Parts .unify").stop().slideUp(); });

$(".header .nav .mainnav").eq(4).hover(function(){ $(".header .nav .Human_Practices span").css("color","#FAEE0D"); $(".header .nav .Human_Practices .unify").stop().slideDown(); },function(){ $(".header .nav .Human_Practices span").css("color","#fff"); $(".header .nav .Human_Practices .unify").stop().slideUp(); });

$(".header .nav .mainnav").eq(5).hover(function(){ $(".header .nav .Awards span").css("color","#FAEE0D"); $(".header .nav .Awards .unify").stop().slideDown(); },function(){ $(".header .nav .Awards span").css("color","#fff"); $(".header .nav .Awards .unify").stop().slideUp(); });

});