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