Team:TU Delft/menu test
From 2010.igem.org
(Difference between revisions)
Line 71: | Line 71: | ||
function registerButton(btnName) { | function registerButton(btnName) { | ||
var btn= $(".menu_button_" + btnName); | var btn= $(".menu_button_" + btnName); | ||
- | + | ||
+ | var href = btn.get(0).href; | ||
+ | alert(href); | ||
btn.click(function() { alert(btnName); }); | btn.click(function() { alert(btnName); }); | ||
} | } | ||
Line 78: | Line 80: | ||
$(function() { | $(function() { | ||
var buttonList = [ "home", "blog", "competition", "background", "project", "education", "sponsors", "press" ]; | var buttonList = [ "home", "blog", "competition", "background", "project", "education", "sponsors", "press" ]; | ||
- | for(var btn in buttonList) | + | for(var btn in buttonList) { |
registerButton(btn); | registerButton(btn); | ||
+ | } | ||
}); | }); | ||
Revision as of 22:09, 4 June 2010