Template:Imperial2010/Header

From OpenWetWare

(Difference between revisions)
Jump to: navigation, search
(New page: <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js...)
Line 9: Line 9:
  var path = location.pathname.substring(1);
  var path = location.pathname.substring(1);
  if ( path )
  if ( path )
-
  $('#headover ul li a[href$="http://openwetware.org/wiki/IGEM:Imperial/2010"]').addClass("curlink");
+
  $('#headover ul li a[href$="' + path + '"]').addClass("curlink");
  var vCurlink = $('#headover ul li a[href$="' + path + '"]').attr("id");
  var vCurlink = $('#headover ul li a[href$="' + path + '"]').attr("id");
  $('#'+vCurlink+'.listhead').addClass('curlink');
  $('#'+vCurlink+'.listhead').addClass('curlink');
Line 36: Line 36:
  $('.listmain').not('.curlink').css("color","#dddddd");
  $('.listmain').not('.curlink').css("color","#dddddd");
  $(this).css("color","#ea8828");
  $(this).css("color","#ea8828");
 +
});
 +
 +
$('#headover').mouseleave(function(){
 +
$('.listmain').not('.curlink').css("color","#dddddd");
});
});

Revision as of 10:51, 23 September 2010

Personal tools