mirror of
https://github.com/slawkens/myaac.git
synced 2025-10-21 21:05:55 +02:00
First public release of MyAAC
This commit is contained in:
30
templates/kathrine/menu.js
Normal file
30
templates/kathrine/menu.js
Normal file
@@ -0,0 +1,30 @@
|
||||
var list = new Array();
|
||||
list[0] = 'news';
|
||||
list[1] = 'account';
|
||||
list[2] = 'community';
|
||||
list[3] = 'library';
|
||||
list[4] = 'about';
|
||||
|
||||
function initMenu()
|
||||
{
|
||||
var length = list.length;
|
||||
for(i = 0; i < length; i++)
|
||||
{
|
||||
if(list[i] == category)
|
||||
{
|
||||
document.getElementById(list[i]).className = 'tab-active';
|
||||
document.getElementById(list[i] + "-submenu").style.display = 'block';
|
||||
}
|
||||
else
|
||||
{
|
||||
document.getElementById(list[i]).className = 'tab';
|
||||
document.getElementById(list[i] + "-submenu").style.display = 'none';
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
function menuSwitch(cat)
|
||||
{
|
||||
category = cat;
|
||||
initMenu();
|
||||
}
|
Reference in New Issue
Block a user