Diff for /zogiLib/js/Attic/navigation.js between versions 1.4 and 1.5

version 1.4, 2004/04/28 09:03:21 version 1.5, 2004/04/28 16:27:16
Line 388  function getElement(tagid) { Line 388  function getElement(tagid) {
     alert("document.all!");      alert("document.all!");
     return document.all[tagid];      return document.all[tagid];
     } else {      } else {
     alert("no document.all!");      var s = "";
       for (var e in document.layers) {
           s += "'" + e + "', ";
       }
       alert("no document.all! "+tagid+" = "+s);
     return document[tagid];      return document[tagid];
     }      }
 }      }    
Line 541  function bestPicSize(tagid) { Line 545  function bestPicSize(tagid) {
     var inset = 0;      var inset = 0;
     var ws = getWinSize();      var ws = getWinSize();
     var es = getElementSize(tagid);      var es = getElementSize(tagid);
       if (es) {
     ws.width = ws.width - es.x - inset;      ws.width = ws.width - es.x - inset;
     ws.height = ws.height - es.y - inset;      ws.height = ws.height - es.y - inset;
       }
     return ws;      return ws;
 }  }
   
   
   
 function init() {  function init() {
       if (document.layers) {
       alert("Sorry Netscape4 is not supported!");
       return false;
       }
     // give a name to the window containing digilib - this way one can test if there is already a      // give a name to the window containing digilib - this way one can test if there is already a
     // digilib-window open and replace the contents of it (ex. digicat)      // digilib-window open and replace the contents of it (ex. digicat)
     top.window.name = "digilib";      top.window.name = "digilib";

Removed from v.1.4  
changed lines
  Added in v.1.5


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