/[webpac]/trunk2/output_template/hijerarhija_node.tt
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/output_template/hijerarhija_node.tt

Parent Directory Parent Directory | Revision Log Revision Log


Revision 581 - (hide annotations)
Mon Nov 1 23:38:53 2004 UTC (14 years, 10 months ago) by dpavlin
File size: 1263 byte(s)
scroll to result, even in iframe

1 dpavlin 572 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
2     <html>
3     <head>
4     <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-2"/>
5     <script type="text/javascript" src="../js/hide.js"></script>
6     <script type="text/javascript" src="../tree-ids.js"></script>
7     <script type="text/javascript" src="../js/getargs.js"></script>
8     <script type="text/javascript" src="../js/popup.js"></script>
9     <script type="text/javascript" src="../js/findpos.js"></script>
10     <script type="text/javascript">
11    
12    
13     function outline_url() {
14     var args = getArgs();
15     var o = args['o'];
16    
17     if (o) {
18     outline_display('o'+o);
19    
20     // following reloads page in Opera == not good
21     //self.location = "#mfn"+o
22     var e = element_id('o'+o);
23 dpavlin 581 var w = self.window;
24 dpavlin 572 if (e) {
25     var y = findPosY(e);
26    
27 dpavlin 581 if (parent.element_id && parent.mfn_iframe) {
28     var e2 = element_id('i'+parent.mfn_iframe[o]);
29     if (e2) y += findPosY(e2);
30     w = parent.window;
31     }
32    
33 dpavlin 572 // position 30px above found term
34     if (y > 30) y -= 30;
35 dpavlin 581 if (e) w.scrollTo(findPosX(e),y);
36 dpavlin 572 }
37     }
38     return true;
39     }
40    
41     </script>
42     <link rel="stylesheet" href="../eurovoc.css" type="text/css">
43     </head>
44    
45     <body onLoad="return outline_url();">
46    
47     <ul>
48     [% node %]
49     </ul>
50    
51     </body>
52     </html>
53    

  ViewVC Help
Powered by ViewVC 1.1.26