>In this line:
>
>
> oDiv.onmouseout=function(e) {OnMouseOut(e,tcAlignID,lnLeft,lnTop,lnWidth,lnHeight)}
> lnLeft=lnLeft-tnAlignOffsetLeft
> lnTop=lnTop-tnAlignOffsetTop
>
>
>The values of lnLeft and lnTop, for example, are passed by reference.
>
>However, once the event is triggered, the value is not what was passed but the adjusted value in the lines following.
>
>What would be the best approach to pass a variable value?
Integers are passed by value (I'm assuming lnLeft/lnTop *are* integers) so something else must be going on.
e.g:
var i = 5;
oDiv.onmouseout = function(e) {
OnMouseOut(e, i);
alert("After"+i); // 5
};
function OnMouseOut(e, i) {
i = i + 1;
}