-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmenu.js
44 lines (40 loc) · 1.25 KB
/
menu.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
var Strapline;
var today = new Date;
function high(element)
{
document.getElementById(element).style.background = "url(/Images/navbutton.png) repeat-x";
document.getElementById("strapline").innerHTML = getStrapline(element);
}
function low(element)
{
document.getElementById(element).style.background = "url(/Images/navbuttonbar.png) repeat-x";
document.getElementById("strapline").innerHTML = Strapline;
}
function updatePage(element)
{
Strapline = getStrapline(element);
document.getElementById("strapline").innerHTML = Strapline;
document.getElementById("updated").innerHTML = "Last updated: Sunday 25th April 2010";
document.getElementById("footer").innerHTML = '© '+today.getFullYear()+' Tony Seeley <a href="mailto:[email protected]">Contact Me</a>';
}
function getStrapline(element)
{
switch (element)
{
case "m_home":
return "Welcome to the Seeley Family web site";
case "m_aboutus":
return "About Tony, Lisa, James and Abi";
case "m_news":
return "Family news stories and recent events";
case "m_photo":
return "Photo's of the family";
case "m_diet":
return "Tony's diet site";
case "m_slang":
return "Cockney rhyming slang dictionary";
case "m_blackadder":
return "BlackAdder tribute site...";
}
return "";
}