/[webpac]/trunk2/out/alphabetical.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

Diff of /trunk2/out/alphabetical.html

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 452 by dpavlin, Wed Sep 15 21:16:22 2004 UTC revision 467 by dpavlin, Thu Sep 23 23:19:38 2004 UTC
# Line 13  function myfilter() { Line 13  function myfilter() {
13          document.myfilter = new BFilter(headlines);          document.myfilter = new BFilter(headlines);
14    
15          document.myfilter.result = function (arr) {          document.myfilter.result = function (arr) {
16                    var r = element_id('results');
17                    if (r) {
18                            var e = document.createElement("a");
19                            e.setAttribute("href","browse.html?o="+arr[1]);
20                            e.appendChild(document.createTextNode(arr[0]));
21                            r.appendChild(e);
22    
23                            r.appendChild(document.createTextNode(" "));
24    
25                            e = document.createElement("a");
26                            e.setAttribute("href","thes/"+arr[1]+".html");
27                            //e.setAttribute("target","_blank");
28                            e.appendChild(document.createTextNode(">>"));
29                            r.appendChild(e);
30    
31                            r.appendChild(document.createElement("br"));
32    
33                            return null;
34                    } else {
35                            alert("can't find results div!");
36                    }
37    /*
38                  return '<li><a href="thes/'+arr[1]+'.html">'+arr[0]+'</a>'+                  return '<li><a href="thes/'+arr[1]+'.html">'+arr[0]+'</a>'+
39                  '&nbsp;<a href="browse.html?o='+arr[1]+'">&curren;</a>' +                  '&nbsp;<a href="browse.html?o='+arr[1]+'">&curren;</a>' +
40                  '</li>';                  '</li>';
41    */
42          }          }
43    
44          // this function is called when updating innerHTML with results          // this function is called when updating innerHTML with results
45          document.myfilter.display = function (html) {          document.myfilter.display = function (html) {
46                  return '<ul>'+html+'</ul>';                  return null;
47    //              return '<ul>'+html+'</ul>';
48          }          }
49  }  }
50    
51  </script>  </script>
52  <script type="text/javascript" src="bfilter/hide.js"></script>  <script type="text/javascript" src="bfilter/hide.js"></script>
 <!--  
53  <link rel="stylesheet" href="style.css" type="text/css">  <link rel="stylesheet" href="style.css" type="text/css">
 -->  
54  <title>Thesaurus</title>  <title>Thesaurus</title>
55  </head>  </head>
56    

Legend:
Removed from v.452  
changed lines
  Added in v.467

  ViewVC Help
Powered by ViewVC 1.1.26