/[webpac]/trunk2/eurovoc/abecedno.html
This is repository of my old source code which isn't updated any more. Go to git.rot13.org for current projects!
ViewVC logotype

Annotation of /trunk2/eurovoc/abecedno.html

Parent Directory Parent Directory | Revision Log Revision Log


Revision 518 - (hide annotations)
Mon Oct 18 18:00:57 2004 UTC (16 years, 3 months ago) by dpavlin
File MIME type: text/html
File size: 8134 byte(s)
much nicer loading of new language

1 dpavlin 484 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
2     <html>
3     <head>
4     <title>HIDRA - Pojmovnik Eurovoc</title>
5     <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-2"/>
6     <link rel="stylesheet" href="eurovoc.css" type="text/css">
7    
8     <script type="text/javascript" src="js/bfilter.js"></script>
9     <script type="text/javascript" src="js/popup.js"></script>
10     <script type="text/javascript" src="js/load_js.js"></script>
11 dpavlin 509 <script type="text/javascript" src="js/cookies.js"></script>
12 dpavlin 484 <script type="text/javascript">
13 dpavlin 509 // <!--
14 dpavlin 484 function myfilter() {
15     // self.document.getElementById('textfilter').focus();
16     // self.document.getElementById('textfilter').caretPos=1;
17     // self.document.getElementById('textfilter').select();
18     self.document.myfilter = new BFilter(headlines);
19    
20     self.document.myfilter.result = function (arr) {
21     var r = element_id('results');
22     if (r) {
23     var e = self.document.createElement("a");
24     e.setAttribute("href","hijerarhija.html?o="+arr[1]+"#mfn"+arr[1]);
25     e.appendChild(self.document.createTextNode(arr[0]));
26     r.appendChild(e);
27    
28     r.appendChild(self.document.createTextNode(" "));
29    
30     e = self.document.createElement("a");
31     e.setAttribute("href","thes/"+arr[1]+".html");
32     e.setAttribute("target","popup");
33     e.onclick = function() { return popup(e) };
34     e.appendChild(self.document.createTextNode("\u00bb"));
35     r.appendChild(e);
36    
37     r.appendChild(self.document.createElement("br"));
38    
39     } else {
40     alert("can't find results div!");
41     }
42     /*
43     return '<li><a href="thes/'+arr[1]+'.html">'+arr[0]+'</a>'+
44     '&nbsp;<a href="browse.html?o='+arr[1]+'">&curren;</a>' +
45     '</li>';
46     */
47     return null;
48     }
49    
50     // this function is called when updating innerHTML with results
51     self.document.myfilter.display = function (html) {
52     return null;
53     // return '<ul>'+html+'</ul>';
54     }
55     }
56    
57 dpavlin 509 var lang2thes = {
58     'hr' : 'DescriptorHR.js',
59     'en' : 'DescriptorEN.js',
60     'fr' : 'DescriptorFR.js',
61     'ge' : 'DescriptorGE.js'
62     };
63    
64     var lang = get_cookie('w2_lang');
65     if (! lang) lang = 'hr';
66    
67 dpavlin 518 var headlines = null;
68     self.document.myfilter = null;
69 dpavlin 509
70 dpavlin 518 function load_lang(lang) {
71 dpavlin 509 // reset results
72 dpavlin 518 if (self.document.myfilter) self.document.myfilter.filter('');
73 dpavlin 509
74     set_cookie('w2_lang', lang);
75 dpavlin 518 element_id('lang').disabled = true;
76     element_id('textfilter').disabled = true;
77     element_id('status').innerHTML = "Uèitavanje podataka za jezik. Molimo, prièekate";
78    
79     self.document.myfilter = null;
80    
81     load_js(lang2thes[lang], 'headlines', 'load_lang_finished();' );
82     }
83    
84     function load_lang_finished() {
85     //alert("loaded "+lang);
86     myfilter();
87 dpavlin 509 self.document.myfilter.arr=headlines;
88 dpavlin 518 element_id('lang').disabled = false;
89     element_id('textfilter').disabled = false;
90     if (self.document.myfilter) self.document.myfilter.filter(element_id('textfilter').value);
91     return false;
92 dpavlin 509 }
93    
94     function select_option(value,text,selected) {
95     document.write('<option value="'+value+'"');
96     if (value == selected) document.write(' selected');
97     document.write('>'+text+'</option>');
98     }
99     // -->
100 dpavlin 484 </script>
101     <script type="text/javascript" src="js/hide.js"></script>
102     </head>
103    
104 dpavlin 518 <body onload="load_lang(lang);">
105 dpavlin 484 <table width="100%" border="0" cellspacing="0" cellpadding="0">
106     <tr>
107     <td colspan="3" class="hdr" height="10">
108     </td>
109     </tr>
110     <tr>
111     <td class="logoHidra">
112     <img src="img/euzajed.png" border="0" alt="Europske zajednice">
113     </td>
114     <td class="logoHidra">
115     <img src="img/hidra.png" border="0" alt="HIDRA logo">
116     </td>
117     <td class="logoEUV">
118     <a href="index.html"><img src="img/eurovoc2.png" border="0" alt="Eurovoc"></a>
119     </td>
120     </tr>
121     <tr>
122     <td class="hdr2" height="10" colspan="3">
123     </td>
124    
125     </tr>
126     </table>
127    
128    
129     <table border="0" cellspacing="0" cellpadding="0" width="100%">
130     <tr>
131     <td class="hMenuL hMenu">
132     <table width="160" cellspacing="0" cellpadding="0">
133     <tr><td>
134     <table border="0" cellspacing="0" cellpadding="0">
135     <tr>
136     <td class="topLpl"></td>
137     <td rowspan="2" class="hMenuTxt"><a class="lhM" href="eurovoc.html">Pojmovnik Eurovoc</a></td>
138     <td nowrap class="topRpl"></td>
139     </tr>
140     <tr>
141     <td class="hMenuSide"></td>
142     <td class="hMenuSide"></td>
143     </tr>
144     <tr>
145     <td colspan="3" height="10"></td>
146     </tr>
147     </table>
148     </td></tr>
149     </table>
150     </td>
151    
152     <td colspan="2" class="hMenu">
153     <table border="0" cellspacing="0" cellpadding="0" align="right" width="520">
154     <tr>
155     <td width="10">&nbsp;</td>
156     <td>
157     <table border="0" cellspacing="0" cellpadding="0">
158     <tr>
159     <td class="topLpl"></td>
160     <td rowspan="2" class="hMenuTxt"><a class="lhM" href="pretrazivanje.html">Pretra¾ivanje</a></td>
161     <td class="topRpl"></td>
162     </tr>
163     <tr>
164     <td class="hMenuSide"></td>
165     <td class="hMenuSide"></td>
166     </tr>
167     <tr>
168     <td colspan="3" height="10"></td>
169     </tr>
170     </table>
171     </td>
172     <td width="10">&nbsp;</td>
173     <td>
174     <table border="0" cellspacing="0" cellpadding="0">
175     <tr>
176     <td class="topLpl"></td>
177     <td rowspan="2" class="hMenuTxt"><a class="lhM" href="hijerarhija.html">Hijerarhijski prikaz</a></td>
178     <td class="topRpl"></td>
179     </tr>
180     <tr>
181     <td class="hMenuSide"></td>
182     <td class="hMenuSide"></td>
183     </tr>
184     <tr>
185     <td colspan="3" height="10"></td>
186     </tr>
187     </table>
188     </td>
189     <td width="10">&nbsp;</td>
190     <td>
191     <table border="0" cellspacing="0" cellpadding="0">
192     <tr>
193     <td class="topLpl"></td>
194     <td rowspan="2" class="ActMenu">Abecedna kazala</td>
195     <td class="topRpl"></td>
196     </tr>
197     <tr>
198     <td class="hMenuSide"></td>
199     <td class="hMenuSide"></td>
200     </tr>
201     <tr>
202     <td class="bottomLpl"></td>
203     <td class="bkgPl"></td>
204     <td class="bottomRpl"></td>
205     </tr>
206     </table>
207     </td>
208     <td width="10">&nbsp;</td>
209     </tr>
210     </table>
211    
212     </td>
213     </tr>
214    
215     <tr>
216     <td width="200" class="menu">
217     <table border="0" cellspacing="0" cellpadding="0" width="160">
218     <tr>
219     <td colspan="3">&nbsp;</td>
220     </tr>
221     <tr>
222     <td class="topLsv"></td>
223     <td class="middle bkgSv"></td>
224     <td class="topRsv"></td>
225     </tr>
226     <tr>
227     <td colspan="3" class="menuItem2">Upute za prikaz abecednih kazala</td>
228     </tr>
229     <tr>
230     <td colspan="3" class="menuItem">
231     Upi¹ite najmanje <em>dva poèetna slova</em> tra¾enog
232     pojma.
233     </td>
234     </tr>
235     <tr>
236     <td colspan="3" class="menuItem">
237     Klik na pojam u abecednom kazalu pozicionira pojam u
238     hijerarhijkoij strukturi pojmovnika.
239     </td>
240     </tr>
241     <tr>
242     <td colspan="3" class="menuItem">
243     Klik na znak &raquo; otvara novi prozor u kojem
244     se pojavljuje detaljan prikaz tra¾enog pojma.
245     </td>
246     </tr>
247     <tr>
248     <td class="bottomLsv"></td>
249     <td class="middle bkgSv"></td>
250     <td class="bottomRsv"></td>
251     </tr>
252     </table>
253    
254     </td>
255    
256    
257     <td class="bd">
258    
259     <h3>Abecedna kazala</h3>
260    
261    
262     <div style="float: right; width: 10em; text-align: center; margin: 0.5m">
263 dpavlin 509 <a href="#" onclick="toggle_display('debug');">debug</a>
264     <div style="text-align: left; border: 1px dashed #c0c0c0; display: none;" id="debug">
265     </div>
266 dpavlin 484 </div>
267    
268 dpavlin 509 <form method="get" onsubmit="return false;" action="?">
269     <div class="filters">
270     <script type="text/javascript">
271     // <!--
272 dpavlin 518 document.write('<select id="lang" name="lang" onchange="load_lang(this.options[this.selectedIndex].value);">');
273 dpavlin 509 select_option("hr","Hrvatski",lang);
274     select_option("en","Engleski",lang);
275     select_option("fr","Francuski",lang);
276     select_option("ge","Njemaèki",lang);
277     document.write('</select>');
278     // -->
279     </script>
280 dpavlin 484
281 dpavlin 509 <input autocomplete="off" class="filters" id="textfilter" title="enter a regular expression to filter by" onkeyup="self.document.myfilter.filter(this.value);" />
282 dpavlin 484 <!-- this button is strictly for looks -->
283 dpavlin 518 <input class="filters" value="filter" type="button" disabled="true"/>
284 dpavlin 484 </div>
285     </form>
286    
287     <div id="status" style="font-size: 80%; color: gray;">
288     <!--
289     Enter few letters to filter by them
290     -->
291     </div>
292    
293     <div id="results">
294     </div>
295    
296     </td>
297     </tr>
298     </table>
299    
300     </body>
301     </html>

  ViewVC Help
Powered by ViewVC 1.1.26