Difference between revisions of "Template:AUC TURKEY"

Line 130: Line 130:
 
     $("#menu li").hover(
 
     $("#menu li").hover(
 
         function(){
 
         function(){
if(activeSub)activeSub.slideUp(200);
+
if(activeSub)if(activeSub.attr("id")!="sub"+$("#menu li").index(this))activeSub.slideUp(200);
 
activeSub=$("#sub"+$("#menu li").index(this));
 
activeSub=$("#sub"+$("#menu li").index(this));
          if(activeSub.attr("id")!="sub"+$("#menu li").index(this)) activeSub.slideDown(200);
+
activeSub.slideDown(200);
 
activeSub.hover(
 
activeSub.hover(
 
         function(){
 
         function(){

Revision as of 14:10, 25 June 2015