我对JS不太熟悉,还希望各位路过的大侠帮忙看一下,谢谢~~~
移动层的代码如下:// Moves the layer
function mouseMove(e) {
if (ns4) {x=e.pageX; y=e.pageY;}
if (ie4) {x=window.event.x; y=window.event.y;}
if (ie5) {x=window.event.x+document.body.scrollLeft; y=window.event.y+document.body.scrollTop;}
if (snow) {
if (dir == 2) { // Center
moveTo(over,x+offsetx-(width/2),y+offsety);
}
if (dir == 1) { // Right
moveTo(over,x+offsetx,y+offsety);
}
if (dir == 0) { // Left
moveTo(over,x-offsetx-width,y+offsety);
}
}
}