Team:UNITS Trieste/Template:Header

From 2011.igem.org

(Difference between revisions)
Line 10: Line 10:
             if($('.current_page_item').length>0||$('#access strong').length>1) {
             if($('.current_page_item').length>0||$('#access strong').length>1) {
               //var subm = $('#access strong').parents("ul.children").find("li.page_item");
               //var subm = $('#access strong').parents("ul.children").find("li.page_item");
-
 
+
/*manage submenu actual page*/
-
var destination = $('#submenu');
+
        var destination = $('#submenu');
-
var subm = $('#access strong').parents("ul.children").find("li.page_item");
+
        var subm = $('#access strong').parents("ul.children").find("li.page_item");
-
$.each( subm, function( intIndex, objValue ){
+
        $.each( subm, function( intIndex, objValue ){
-
  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+");\">" + objValue.firstChild.innerHTML + "</span>" ));
+
          destination.append($( "<span onClick=\"$(location).attr('href','"+linkm+"');\" onmouseover=\"$(this).animate({padding-top:'80px'});\" onmouseout=\"$(this).animate({padding-top:'0px'});\" >" + objValue.firstChild.innerHTML + "</span>" ));
-
});
+
        });
               $('#submenu').css('display','none');
               $('#submenu').css('display','none');
             }
             }

Revision as of 13:24, 27 August 2011