Template:Team:Hannover/main.tmpl
From 2014.igem.org
(Difference between revisions)
Line 43: | Line 43: | ||
function menu_init() { | function menu_init() { | ||
+ | global menu_currentPage; | ||
var loc = document.location.href; | var loc = document.location.href; | ||
window.alert('Init: '+loc); | window.alert('Init: '+loc); | ||
Line 54: | Line 55: | ||
menu_currentPage= 'TEAM'; | menu_currentPage= 'TEAM'; | ||
} | } | ||
- | var menu_image_src = pageMap[ | + | var menu_image_src = pageMap[menu_currentPage]; |
$('#menu_image').attr('src', menu_image_src); | $('#menu_image').attr('src', menu_image_src); | ||
} | } | ||
function menu_onMouseOut() { | function menu_onMouseOut() { | ||
- | var menu_image_src = pageMap[ | + | var menu_image_src = pageMap[menu_currentPage]; |
$('#menu_image').attr('src', menu_image_src); | $('#menu_image').attr('src', menu_image_src); | ||
} | } |
Revision as of 20:17, 31 August 2014