--- trunk2/eurovoc/abecedno.html 2004/10/19 15:08:29 522 +++ trunk2/eurovoc/abecedno.html 2004/10/19 15:17:25 523 @@ -18,23 +18,27 @@ self.document.myfilter = new BFilter(headlines); self.document.myfilter.result = function (arr) { - var r = element_id('results'); - if (r) { + var r_div = element_id('results'); + if (r_div) { + var li = self.document.createElement("li"); var e = self.document.createElement("a"); e.setAttribute("href","hijerarhija.html?o="+arr[1]+"#mfn"+arr[1]); e.appendChild(self.document.createTextNode(arr[0])); - r.appendChild(e); + li.appendChild(e); - r.appendChild(self.document.createTextNode(" ")); + li.appendChild(self.document.createTextNode(" ")); e = self.document.createElement("a"); e.setAttribute("href","thes/"+arr[1]+".html"); e.setAttribute("target","popup"); e.onclick = function() { return popup(e) }; e.appendChild(self.document.createTextNode("\u00bb")); - r.appendChild(e); + li.appendChild(e); - r.appendChild(self.document.createElement("br")); + li.appendChild(self.document.createElement("br")); + + // append li + r_div.appendChild(li); } else { alert("can't find results div!"); @@ -290,8 +294,8 @@ --> -
-
+