File:  [mozdev] / dynamiclinks / src / dynamiclinks.xul
Revision 1.1: download - view: text, annotated - select for diffs - revision graph
Thu Jan 23 10:23:25 2003 UTC (15 years, 9 months ago) by jiri
Branches: MAIN
CVS tags: HEAD
release 0.1

<?xml version="1.0"?>

<overlay xmlns:html=""

  <script type="application/x-javascript" src="dynamiclinks.js" />
  <script type="application/x-javascript"><![CDATA[


    if (!dlStop()) {

      //  I use the following double-registration & full-switch-off workaround
      //  for window.addEventListener("load", ...) because there seems to be a bug
      //  in Mozilla (I still test it, so no Bugzilla id) ... and unfortunately
      //  it looks like other programs trying to use the same type of listeners
      //  (but initialized only once) might not get activated

      window.addEventListener("load", dlOnLoadWindow, true);
      window.addEventListener("load", dlOnLoadWindow, false);

    function dlOnLoadWindow(evt) {
      if (dlStop()) return;
      window.removeEventListener("load", dlOnLoadWindow, false);
      window.removeEventListener("load", dlOnLoadWindow, true);
      window.addEventListener("mousemove", dlDynamicLinks, false);
      window.addEventListener("mouseout", dlMouseOut, false);
      window.addEventListener("keyup", dlKeyUp, false);



FreeBSD-CVSweb <>