|
":"")}
function getXpos(N){return (B) ? parseInt(B[N].style.left) : C[N].left}
function getYpos(N){return (B) ? parseInt(B[N].style.top) : C[N].top}
function moveContainer(N,DX,DY){c=(B) ? B[N].style : C[N];c.left=DX;c.top=DY}
function cycle(){for (i=0;i<(nos-1);i++){moveContainer("CUR"+i,getXpos("CUR"+(i+1)),getYpos("CUR"+(i+1)))}}
function newPos(e){moveContainer("CUR"+(nos-1),((B)?event.clientX+document.body.scrollLeft:e.pageX)+2,((B)?event.clientY+document.body.scrollTop:e.pageY)+2)}
if(document.layers)document.captureEvents(Event.MOUSEMOVE)
else if (B)document.body.onscroll=newPos
document.onmousemove=newPos
file://setInterval("cycle()",rate);
me>
|