Team:Evry/template v1

From 2013.igem.org

(Difference between revisions)
Line 44: Line 44:
         if($(document).scrollTop()>=200)
         if($(document).scrollTop()>=200)
             {
             {
-
                 $('.navbar').css('position','fixed').css('top','0px').css('width','70%');
+
                 $('.navbar').css('position','fixed').css('top','0px').css('width','70%').css('height','20px');
                 $('a.home-link').css('background','none');
                 $('a.home-link').css('background','none');
                 $('a.project-link').css('background','none');
                 $('a.project-link').css('background','none');
Line 53: Line 53:
             else
             else
             {
             {
-
                 $('.navbar').css('position','relative').css('width','100%');
+
                 $('.navbar').css('position','relative').css('width','100%').css('height','auto');
                 $('a.home-link').css('background','url("http://note.woku1.com/images/img/home.png") no-repeat scroll 50% 5px transparent');  
                 $('a.home-link').css('background','url("http://note.woku1.com/images/img/home.png") no-repeat scroll 50% 5px transparent');  
                 $('a.project-link').css('background','url("http://note.woku1.com/images/img/project.png") no-repeat scroll 50% 5px transparent');
                 $('a.project-link').css('background','url("http://note.woku1.com/images/img/project.png") no-repeat scroll 50% 5px transparent');

Revision as of 22:06, 10 August 2013