Team:UNITS Trieste/Template:Header

From 2011.igem.org

(Difference between revisions)
Line 15: Line 15:
$.each( subm, function( intIndex, objValue ){
$.each( subm, function( intIndex, objValue ){
   var linkm = objValue.firstChild;
   var linkm = objValue.firstChild;
-
   if(linkm.nodeName=="STRONG") destination.append($( "<span>" + $(location).attr('href') + "</span>" ));
+
   if(linkm.nodeName=="STRONG") linkm = $(location).attr('href');
-
   else destination.append($( "<span>" + linkm + "</span>" ));
+
   destination.append($( "<span onClick=\"$(location).attr('href',"+linkm+");\">" + objValue.firstChild.innerHTML + "</span>" ));
-
  destination.append($( "<span>" + objValue.firstChild.innerHTML + "</span>" ));
+
});
});
               $('#submenu').css('display','none');
               $('#submenu').css('display','none');

Revision as of 13:06, 27 August 2011