Diff for /ECHO_content/js/hl_lib.js between versions 1.5 and 1.6

version 1.5, 2004/12/10 19:33:09 version 1.6, 2005/06/09 08:34:49
Line 69  function placeAreas() { Line 69  function placeAreas() {
             // N4: grow layer for border              // N4: grow layer for border
             img.resizeBy(2,2);              img.resizeBy(2,2);
         }          }
           } else if (area.type == "text") {
           var txt = getElement("t."+area.id);
           if (img.layers) {
               // for N4 we size a transparent image as the area
               var li = img.document.images[0];
               li.width = rect.width;
               li.height = rect.height;
           }
           moveElement(img, rect);
           moveElement(txt, rect);
         } else {          } else {
         if (img.layers) {          if (img.layers) {
             // for N4 we size a transparent image as the area              // for N4 we size a transparent image as the area
Line 110  function highlightPair(id, highlight) { Line 120  function highlightPair(id, highlight) {
         } else if (img.layers) {          } else if (img.layers) {
         img.bgColor = "#0000ff";          img.bgColor = "#0000ff";
         }          }
       } else if (area.type == "text") {
           if (img.style) {
           img.style.background = "url(area_img)";
           } else if (img.layers) {
           img.background.src = "area_img";
           }
           var txt = getElement("t."+id);
           if (txt.style) {
           txt.style.visibility = "visible";
           }
     } else if (area.type == "area") {      } else if (area.type == "area") {
         if (img.style) {          if (img.style) {
         img.style.background = "url(area_img)";          img.style.background = "url(area_img)";
Line 118  function highlightPair(id, highlight) { Line 138  function highlightPair(id, highlight) {
         }          }
     }      }
     } else {      } else {
       // unhighlight
     if (link.style) {      if (link.style) {
         link.style.backgroundColor = "";          link.style.backgroundColor = "";
     } else if (link.layers) {      } else if (link.layers) {
Line 129  function highlightPair(id, highlight) { Line 150  function highlightPair(id, highlight) {
         } else if (img.layers) {          } else if (img.layers) {
         img.bgColor = null;          img.bgColor = null;
         }          }
       } else if (area.type == "text") {
           if (img.style) {
           img.style.background = "url(trans_img)";
           } else if (img.layers) {
           img.background.src = null;
           }
           var txt = getElement("t."+id);
           if (txt.style) {
           txt.style.visibility = "hidden";
           }
     } else if (area.type == "area") {      } else if (area.type == "area") {
         if (img.style) {          if (img.style) {
         img.style.background = "url(trans_img)";          img.style.background = "url(trans_img)";

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


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