1 |
//var undefined; // Pro zpetnou kompatibilitu kdyby JS nepodporoval undefined |
1 |
//var undefined; // Pro zpetnou kompatibilitu kdyby JS nepodporoval undefined |
2 |
|
2 |
|
3 |
|
3 |
|
4 |
function DrawHeader(MoreInfo) |
4 |
function DrawHeader(MoreInfo) |
5 |
// Nepovinny parametr udava nadpis stranky |
5 |
// Nepovinny parametr udava nadpis stranky |
6 |
// Neni-li uveden bere se text ze znacky title dokumentu |
6 |
// Neni-li uveden bere se text ze znacky title dokumentu |
7 |
{ |
7 |
{ |
8 |
with (document) |
8 |
with (document) |
9 |
{ |
9 |
{ |
10 |
if(0) |
10 |
if(0) |
11 |
write('<b>Hlavièka z JavScriptu: ', MoreInfo, '</b>' ); |
11 |
write('<b>Hlavièka z JavScriptu: ', MoreInfo, '</b>' ); |
12 |
else |
12 |
else |
13 |
{ |
13 |
{ |
14 |
// Default informace pokud je parametr nezadany |
14 |
// Default informace pokud je parametr nezadany |
15 |
if(MoreInfo==undefined) MoreInfo=document.title; |
15 |
if(MoreInfo==undefined) MoreInfo=document.title; |
16 |
// Vlozeni HTML kodu |
16 |
// Vlozeni HTML kodu |
17 |
write('<div class="Header"> '); |
17 |
write('<div class="Header"> '); |
18 |
write('<a href="index.html"><img border=0 width=273 height=57 src="mlab01.gif" alt="MLAB online"></a>'); |
18 |
write('<a href="index.html"><img border=0 width=273 height=57 src="mlab01.gif" alt="MLAB online"></a>'); |
19 |
write('<span class="HeaderText"> '+MoreInfo+'</span>'); |
19 |
write('<span class="HeaderText"> '+MoreInfo+'</span>'); |
20 |
write('</div> '); |
20 |
write('</div> '); |
21 |
} |
21 |
} |
22 |
} |
22 |
} |
23 |
} |
23 |
} |
24 |
|
24 |
|
25 |
|
25 |
|
26 |
function DrawMenu(MoreInfo) |
26 |
function DrawMenu(MoreInfo) |
27 |
// Nepovinny parametr udava nazev menu |
27 |
// Nepovinny parametr udava nazev menu |
28 |
// Neni-li uveden dava se text Menu |
28 |
// Neni-li uveden dava se text Menu |
29 |
{ |
29 |
{ |
30 |
with(document) |
30 |
with(document) |
31 |
{ |
31 |
{ |
32 |
if (0) |
32 |
if (0) |
33 |
{ |
33 |
{ |
34 |
write('<b>Menu z JavaScriptu: ', MoreInfo, '</b>'); |
34 |
write('<b>Menu z JavaScriptu: ', MoreInfo, '</b>'); |
35 |
} |
35 |
} |
36 |
else |
36 |
else |
37 |
{ |
37 |
{ |
38 |
// Default text |
38 |
// Default text |
39 |
if(MoreInfo==undefined) MoreInfo="Menu"; |
39 |
if(MoreInfo==undefined) MoreInfo="Menu"; |
40 |
// Vlastni menu |
40 |
// Vlastni menu |
41 |
write('<div class="Menu">'); |
41 |
write('<div class="Menu">'); |
42 |
write(' <div class="MenuText">'); |
42 |
write(' <div class="MenuText">'); |
43 |
write( MoreInfo); |
43 |
write( MoreInfo); |
44 |
write(' </div>'); |
44 |
write(' </div>'); |
45 |
write(' <ul>'); |
45 |
write(' <ul>'); |
46 |
write(' <li> <a href="index.html">MLAB Home</a> </li>'); |
46 |
write(' <li> <a href="index.html">MLAB Home</a> </li>'); |
47 |
write(' <li> <a href="AboutAuthors.html">Autoøi</a> </li>'); |
47 |
write(' <li> <a href="AboutAuthors.html">Autoøi</a> </li>'); |
48 |
write(' <li> <a href="AboutWeb.html">O WEBu</a> </li>'); |
48 |
write(' <li> <a href="AboutWeb.html">O WEBu</a> </li>'); |
49 |
write(' </ul>'); |
49 |
write(' </ul>'); |
50 |
write('</div> '); |
50 |
write('</div> '); |
51 |
} |
51 |
} |
52 |
} |
52 |
} |
53 |
} |
53 |
} |
54 |
|
54 |
|
55 |
|
55 |
|
56 |
function DrawFooter(MoreInfo) |
56 |
function DrawFooter(MoreInfo) |
57 |
// Nepovinny parametr pro text do paticky |
57 |
// Nepovinny parametr pro text do paticky |
58 |
{ |
58 |
{ |
59 |
with (document) |
59 |
with (document) |
60 |
{ |
60 |
{ |
61 |
if (0) |
61 |
if (0) |
62 |
{ |
62 |
{ |
63 |
write('<b>Patièka z JavaScriptu: ', MoreInfo, '</b>'); |
63 |
write('<b>Patièka z JavaScriptu: ', MoreInfo, '</b>'); |
64 |
} |
64 |
} |
65 |
else |
65 |
else |
66 |
{ |
66 |
{ |
67 |
// Default text je prazdny |
67 |
// Default text je prazdny |
68 |
if(MoreInfo==undefined) MoreInfo=""; |
68 |
if(MoreInfo==undefined) MoreInfo=""; |
69 |
// Vlozeni HTML kodu |
69 |
// Vlozeni HTML kodu |
70 |
write('<div class="Footer">'); |
70 |
write('<div class="Footer">'); |
71 |
write('<a href=#>Nahoru</a> ') |
71 |
write('<a href=#>Nahoru</a> ') |
- |
|
72 |
write('<a href="Copyright.html">Copyright</a> © '); |
72 |
write('<a href="Copyright.html">Copyright © Autoøi MLAB</a> '); |
73 |
write('<a href="AboutAuthors.html">Autoøi MLAB</a/> '); |
73 |
write('['+document.lastModified+'] '); |
74 |
write('['+document.lastModified+'] '); |
74 |
write(MoreInfo); |
75 |
write(MoreInfo); |
75 |
write('</div>'); |
76 |
write('</div>'); |
76 |
} |
77 |
} |
77 |
} |
78 |
} |
78 |
} |
79 |
} |
79 |
|
80 |
|
80 |
|
81 |
|