version 1.1, 2004/03/30 19:12:22
|
version 1.2, 2004/04/18 17:36:02
|
Line 1
|
Line 1
|
javaScriptMain=""" |
javaScriptMain=""" |
<!-- |
//" |
|
var Selection; |
var |
var Coords; |
Selection, |
var Arrows; |
Coords, |
var Red; |
Red, |
var Img; |
Img, |
var state, p1, p2; |
state, p1, p2; |
|
|
|
function Init() { |
function Init() { |
Selection = -1; |
Selection = -1; |
Line 75 function ShowRedFrame(spot, img, fx, fy,
|
Line 74 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'; |
|
}; |
|
} |
|
|
function NoRedFrame(spot) { |
function NoRedFrame(spot) { |
with (spot.style) { |
with (spot.style) { |
left = 0; |
left = 0; |
Line 177 if (nr == -1) { NoRedFrame(Red); return
|
Line 186 if (nr == -1) { NoRedFrame(Red); return
|
with (coords[nr]) { |
with (coords[nr]) { |
if (high) { |
if (high) { |
ShowRedFrame(Red, element, cx, cy, cw, ch); |
ShowRedFrame(Red, element, cx, cy, cw, ch); |
linkstyle.backgroundColor = '#f0dfdf'; |
linkstyle.backgroundColor = '#f08080'; |
} |
} |
else { linkstyle.backgroundColor = ''; }; |
else { linkstyle.backgroundColor = ''; }; |
}; |
}; |