--- trunk2/out/thesaurus.html 2004/09/12 20:36:33 432 +++ trunk2/out/thesaurus.html 2004/09/23 23:19:38 467 @@ -11,18 +11,57 @@ // document.getElementById('textfilter').caretPos=1; // document.getElementById('textfilter').select(); document.myfilter = new BFilter(headlines); + + document.myfilter.result = function (arr) { + var r = element_id('results'); + if (r) { + var e = document.createElement("a"); + e.setAttribute("href","browse.html?o="+arr[1]); + e.appendChild(document.createTextNode(arr[0])); + r.appendChild(e); + + r.appendChild(document.createTextNode(" ")); + + e = document.createElement("a"); + e.setAttribute("href","thes/"+arr[1]+".html"); + //e.setAttribute("target","_blank"); + e.appendChild(document.createTextNode(">>")); + r.appendChild(e); + + r.appendChild(document.createElement("br")); + + return null; + } else { + alert("can't find results div!"); + } +/* + return '
  • '+arr[0]+''+ + ' ¤' + + '
  • '; +*/ + } + + // this function is called when updating innerHTML with results + document.myfilter.display = function (html) { + return null; +// return ''; + } } - Thesaurus -
    +
    +debug + + +