#32002/3/29 11:44:47
下面是他用的代码,用的时候需要改动数值
var x = 0;
var dest = 0;
var distance = 0;
var step = 0;
var destination = 0;
function scrollit(destination) {
step = 1;
dest = destination;
if (x while (x step += (step / 400);
x += step;
top.main.scroll(x,0);
}
top.main.scroll(dest,0);
x = dest;
}
if (x > dest) {
while (x>dest) {
step += (step / 400);
if(x >= (0+step))
{
x -= step;
top.main.scroll(x,0);
}
else { break; }
}
if(dest >= 0) { top.main.scroll(dest,0); }
x = dest;
}
if (x<1) {x=1}
if (x>7000) {x=7000}
}
//-->
-------------------------------
onClick=scrollit(x+200)