Template:Team:Trieste/menu
From 2012.igem.org
(Difference between revisions)
(fix js regex) |
(fix js) |
||
Line 68: | Line 68: | ||
title_regexp = /http:\/\/2012\.igem\.org\/Team:Trieste\/([a-zA-Z]+).*/; | title_regexp = /http:\/\/2012\.igem\.org\/Team:Trieste\/([a-zA-Z]+).*/; | ||
title = title_regexp.exec(location.href); | title = title_regexp.exec(location.href); | ||
- | $('#navigation > li > a[href$=' + title + ']').parent().addClass('select'); | + | $('#navigation > li > a[href$=' + title[1] + ']').parent().addClass('select'); |
/* js menu */ | /* js menu */ | ||
$('#navigation > li').hover( | $('#navigation > li').hover( |
Revision as of 13:45, 26 September 2012