Team:UNITS Trieste/Template:Header

From 2011.igem.org

(Difference between revisions)
Line 16: Line 16:
           var linkm = objValue.firstChild;
           var linkm = objValue.firstChild;
           if(linkm.nodeName=="STRONG") linkm = $(location).attr('href');
           if(linkm.nodeName=="STRONG") linkm = $(location).attr('href');
-
           destination.append($( "<span onClick=\"$(location).attr('href','"+linkm+"');\" onmouseover=\"$(this).animate({padding-top:'80px'});\" onmouseout=\"$(this).animate({padding-top:'0px'});\" >" + objValue.firstChild.innerHTML + "</span>" ));
+
           destination.append($( "<span onclick=\"$(location).attr('href','"+linkm+"');\" onmouseover=\"$(this).animate({'paddingTop':'80px'},'slow');\" onmouseout=\"$(this).animate({'paddingTop':'0px'},'fast');\" >" + objValue.firstChild.innerHTML + "</span>" ));
         });
         });
-
               $('#submenu').css('display','none');
+
               $('#submenu').css('display','block');
             }
             }
           }
           }

Revision as of 13:29, 27 August 2011