--- trunk2/output_template/hijerarhija_node.tt 2004/11/01 14:55:16 572 +++ trunk2/output_template/hijerarhija_node.tt 2004/11/01 23:38:53 581 @@ -20,12 +20,19 @@ // following reloads page in Opera == not good //self.location = "#mfn"+o var e = element_id('o'+o); + var w = self.window; if (e) { var y = findPosY(e); + if (parent.element_id && parent.mfn_iframe) { + var e2 = element_id('i'+parent.mfn_iframe[o]); + if (e2) y += findPosY(e2); + w = parent.window; + } + // position 30px above found term if (y > 30) y -= 30; - if (e) window.scrollTo(findPosX(e),y); + if (e) w.scrollTo(findPosX(e),y); } } return true;