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 (14 years, 10 months ago) by jiri
Branches: MAIN
CVS tags: HEAD
release 0.1

<?xml version="1.0"?>

<overlay xmlns:html="http://www.w3.org/1999/xhtml"
         xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">

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

    dlPrefsInit();

    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);
    }

  ]]></script>

</overlay>


FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>