######################################################################
###
### P o i n t e r
###
######################################################################
######################################################################
###
### I m a g e
###
######################################################################
" alt="" border="0">
######################################################################
###
### J a v a S c r i p t
###
######################################################################
######################################################################
]]>
######################################################################
###
### A d d
###
######################################################################
IMPORTANT NOTE:
Constructor must always be part of <> method!
######################################################################
###
### E d i t
###
######################################################################
######################################################################
]]>
######################################################################
###
### F o r m
###
######################################################################
">
">
" alt="" border="0" onclick="imgClick(this);">
######################################################################
###
### P o i n t e r
###
######################################################################
######################################################################
###
### J a v a S c r i p t
###
######################################################################
######################################################################
]]>(el) {
var coords;
if (document.layers) { // Netscape 4
coords = {x: el.x, y: el.y};
} else {
coords = {x: 0, y: 0};
var element = el;
while (element) {
coords.x += element.offsetLeft;
coords.y += element.offsetTop;
element = element.offsetParent;
}
}
return coords;
}
function setPointer_(xCoord, yCoord) {
// Get coords.
if (document.all) { // Internet Explorer
el = document.all[eval('"IMG_"')];
} else if (document.layers) { // Netscape 4
el = eval("document.IMG_");
} else if (document.getElementById) { // DOM
el = document.getElementById("IMG_");
}
coords = getCoords_(el);
xPointer = coords['x']+parseInt(xCoord)-2;
yPointer = coords['y']+parseInt(yCoord)-2;
// Set pointer.
if (document.all) { // Internet Explorer
whichEl = document.all[eval('"POINTER_"')];
whichEl.style.top = yPointer+"px";
whichEl.style.left = xPointer+"px";
whichEl.style.visibility = "visible";
} else if (document.layers) { // Netscape 4
whichEl = eval("document.POINTER_");
whichEl.top = (parseInt(yPointer));
whichEl.left = (parseInt(xPointer));
whichEl.visibility = "show";
} else if (document.getElementById) { // DOM
whichEl = document.getElementById("POINTER_");
whichEl.style.top = yPointer+"px";
whichEl.style.left = xPointer+"px";
whichEl.style.visibility = "visible";
}
return (coords.x>0) && (coords.y>0);
}
//---------- EO js_main ----------]]>