Displaying 1 result from an estimated 1 matches for "nxpos".
Did you mean:
npos
2006 May 14
1
Dragable element
...#39;');
//$(''ggggg'').innerHTML = ''X: ''+iX+'' Y: ''+iY;
}
function moveProductImage(x, y, prod){
var nX = x.replace(''px'', '''');
var nY = y.replace(''px'', '''');
//var nxpos=0, nypos=0;
if(nY < iY){
nypos = nY - iY;
// 25 -
} else if(nY > iY){
nypos = iY - nY;
}
if(nX < iX){
nxpos = nX - iX;
} else if(nX > iX){
nxpos = iX - nX;
}
new Effect.MoveBy(prod, (nxpos*2.5), (nypos*2.5));
//new Effect.Move (prod,{ x: 10, y: 10,...