8 |
<script type="text/javascript" src="js/bfilter.js"></script> |
<script type="text/javascript" src="js/bfilter.js"></script> |
9 |
<script type="text/javascript" src="js/popup.js"></script> |
<script type="text/javascript" src="js/popup.js"></script> |
10 |
<script type="text/javascript" src="js/load_js.js"></script> |
<script type="text/javascript" src="js/load_js.js"></script> |
11 |
<script type="text/javascript" src="DescriptorHR.js"></script> |
<script type="text/javascript" src="js/cookies.js"></script> |
12 |
<script type="text/javascript"> |
<script type="text/javascript"> |
13 |
|
// <!-- |
14 |
function myfilter() { |
function myfilter() { |
15 |
// self.document.getElementById('textfilter').focus(); |
// self.document.getElementById('textfilter').focus(); |
16 |
// self.document.getElementById('textfilter').caretPos=1; |
// self.document.getElementById('textfilter').caretPos=1; |
54 |
} |
} |
55 |
} |
} |
56 |
|
|
57 |
|
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 |
|
var headlines = null; |
68 |
|
self.document.myfilter = null; |
69 |
|
|
70 |
|
function load_lang(lang) { |
71 |
|
// reset results |
72 |
|
if (self.document.myfilter) self.document.myfilter.filter(''); |
73 |
|
|
74 |
|
set_cookie('w2_lang', lang); |
75 |
|
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 |
|
self.document.myfilter.arr=headlines; |
88 |
|
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 |
|
} |
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 |
</script> |
</script> |
101 |
<script type="text/javascript" src="js/hide.js"></script> |
<script type="text/javascript" src="js/hide.js"></script> |
|
|
|
102 |
</head> |
</head> |
103 |
|
|
104 |
<body onload="myfilter(); "> |
<body onload="load_lang(lang);"> |
105 |
<table width="100%" border="0" cellspacing="0" cellpadding="0"> |
<table width="100%" border="0" cellspacing="0" cellpadding="0"> |
106 |
<tr> |
<tr> |
107 |
<td colspan="3" class="hdr" height="10"> |
<td colspan="3" class="hdr" height="10"> |
260 |
|
|
261 |
|
|
262 |
<div style="float: right; width: 10em; text-align: center; margin: 0.5m"> |
<div style="float: right; width: 10em; text-align: center; margin: 0.5m"> |
263 |
<a href="#" onClick="toggle_display('debug');">debug</a> |
<a href="#" onclick="toggle_display('debug');">debug</a> |
264 |
|
<div style="text-align: left; border: 1px dashed #c0c0c0; display: none;" id="debug"> |
265 |
<div style="text-align: left; border: 1px dashed #c0c0c0; display: none;" id="debug"> |
</div> |
266 |
</div> |
</div> |
267 |
|
|
268 |
</div> |
<form method="get" onsubmit="return false;" action="?"> |
|
|
|
|
|
|
|
<form method="get" onSubmit="return false;"> |
|
269 |
<div class="filters"> |
<div class="filters"> |
270 |
<select name="headlines_name" onChange="load_js(this.options[this.selectedIndex].value); self.document.myfilter.arr=headlines;"> |
<script type="text/javascript"> |
271 |
<option value="DescriptorHR.js">Hrvatski</option> |
// <!-- |
272 |
<option value="DescriptorEN.js">Engleski</option> |
document.write('<select id="lang" name="lang" onchange="load_lang(this.options[this.selectedIndex].value);">'); |
273 |
<option value="DescriptorFR.js">Francuski</option> |
select_option("hr","Hrvatski",lang); |
274 |
<option value="DescriptorGE.js">Njemački</option> |
select_option("en","Engleski",lang); |
275 |
</select> |
select_option("fr","Francuski",lang); |
276 |
<input autocomplete="off" class="filters" id="textfilter" title="enter a regular expression to filter by" onKeyUp="self.document.myfilter.filter(this.value);"> |
select_option("ge","Njemački",lang); |
277 |
|
document.write('</select>'); |
278 |
|
// --> |
279 |
|
</script> |
280 |
|
|
281 |
|
<input autocomplete="off" class="filters" id="textfilter" title="enter a regular expression to filter by" onkeyup="self.document.myfilter.filter(this.value);" /> |
282 |
<!-- this button is strictly for looks --> |
<!-- this button is strictly for looks --> |
283 |
<input class="filters" value="filter" type="button"> |
<input class="filters" value="filter" type="button" disabled="true"/> |
284 |
</div> |
</div> |
285 |
</form> |
</form> |
286 |
|
|
298 |
</table> |
</table> |
299 |
|
|
300 |
</body> |
</body> |
|
|
|
|
|
|
|
|
|
301 |
</html> |
</html> |
|
|
|
|
|
|