rem:  var cZoomBoxName = "zoomBox"; var cZoomBoxTopOffsetWOText = 31; var cZoomBoxTopOffsetWText = 0; var cZoomBoxRightOffset = -18; 
add:  var cZoomBoxName = "zoomBox"; 
context: function zoomGraphObjRefresh() {//  Constants var cZoomBoxName = "zoomBox"; var cZoomBoxTopOffsetWOText = 31; var cZoomBoxTopOffsetWText = 0; var cZoomBoxRightOffset = -18; var cZoomSensitiveZoneName = "zoomSensitiveZone"; var cZoomSensitiveZoneOffset = 0;// Variables var imgObject;// var imgSource; var imgAlt; var divObject; var left; var top; var width; var height; var zoomBoxWidth; var zoomBoxHeight; imgObject = this.imgObject; //imgSource = imgObject.src; imgAlt = imgObject.alt; width = imgObject.width; height = imgObject.height; zoomBoxWidth = 401; //Default size, this needs to be read eventually from the tag zoomBoxHeight = 101; //Default size, this needs to be read eventually from the tag // Get absolute graph position // start with the image's coordinates and walk through it's // ancestory of elements (tables, div's, spans, etc...) until // we're at the top.  Along the way we add in each element's // coordinates to get the final answer left = 0; top = 0; do {  left += imgObject.offsetLeft;  top += imgObject.offsetTop;  imgObject  = imgObject.offsetParent; } while(imgObject); this.zoomGraphLeft = left; this.zoomGraphTop = top; this.zoomGraphRight = left + width; this.zoomGraphBottom = top + height; this.zoomGraphWidth = width; this.zoomGraphHeight = height;this.zoomBoxRight = this.zoomGraphRight + cZoomBoxRightOffset;if(imgAlt == "") { this.zoomBoxTop = this.zoomGraphTop + cZoomBoxTopOffsetWOText;}else { this.zoomBoxTop = this.zoomGraphTop + cZoomBoxTopOffsetWText;} this.zoomBoxLeft = this.zoomBoxRight - zoomBoxWidth; this.zoomBoxBottom = this.zoomBoxTop + zoomBoxHeight; this.zoomBoxWidth = zoomBoxWidth; this.zoomBoxHeight = zoomBoxHeight;// this.drawSelection(this.zoomBoxLeft, this.zoomBoxTop, this.zoomBoxRight, this.zoomBoxBottom); this.drawSelection(0, 0, 0, 0); // reset selection divObject = document.getElementById(cZoomBoxName); divObject.style.left = this.zoomBoxLeft; divObject.style.top = this.zoomBoxTop; divObject.style.width = this.zoomBoxWidth; divObject.style.height = this.zoomBoxHeight; this.zoomSensitiveZoneLeft = this.zoomBoxLeft - cZoomSensitiveZoneOffset;  this.zoomSensitiveZoneTop = this.zoomBoxTop - cZoomSensitiveZoneOffset;   this.zoomSensitiveZoneRight = this.zoomBoxRight + cZoomSensitiveZoneOffset; this.zoomSensitiveZoneBottom = this.zoomBoxBottom + cZoomSensitiveZoneOffset; this.zoomSensitiveZoneWidth = this.zoomSensitiveZoneRight - this.zoomSensitiveZoneLeft; this.zoomSensitiveZoneHeight = this.zoomSensitiveZoneBottom - this.zoomSensitiveZoneTop; divObject = document.getElementById(cZoomSensitiveZoneName); divObject.style.left = this.zoomSensitiveZoneLeft; divObject.style.top = this.zoomSensitiveZoneTop; divObject.style.width = this.zoomSensitiveZoneWidth; divObject.style.height = this.zoomSensitiveZoneHeight;}
meta: 2281	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/2281/0d1028ec95a4888d5783d937fca359af6dd38018/domainZoom.js/buggy/src/web/web/js/domainZoom.js