--- ECHO_content/Attic/ECHO_graphicalOverview.py 2004/04/19 10:35:14 1.4 +++ ECHO_content/Attic/ECHO_graphicalOverview.py 2004/05/04 14:24:25 1.5 @@ -82,13 +82,11 @@ function ShowRedFrame(spot, img, fx, fy, } function ShowArrow(spot, img, fx, fy, fw, fh) { - with (spot.style) { - left = img.x + fx * img.w - 0.5 * width; - top = img.y + fy * img.h - 0.5 * height; - //width = fw * img.w; - //height = fh * img.h; - visibility = 'visible'; - }; + var x = img.x + (fx + 0.5 * fw) * img.w - 0.5 * spot.obj.width; + var y = img.y + (fy + 0.5 * fh) * img.h - 0.5 * spot.obj.height; + spot.style.left = x; + spot.style.top = y; + spot.style.visibility = 'visible'; } function NoRedFrame(spot) { @@ -265,11 +263,14 @@ function highlightImg(name, highlight) { function highlightPair(name, highlight) { var img = getElement("i."+name); var link = getElement(name); + //alert("imgstyle: "+img.style); if (highlight) { - img.border = 1; + //img.border = 1; + img.style.borderStyle = 'solid'; link.style.backgroundColor = '#f08080'; } else { - img.border = 0; + //img.border = 0; + img.style.borderStyle = 'none'; link.style.backgroundColor = ''; } }