Markus Thomas: Seite scrollen lassen per Click

Beitrag lesen

Hallo,

var x=0;
var y=0;
function scroll(action)
{
  x++;
  if (action="stop") x=10000;

hier natürlich if (action=="stop") x=10000;

y++;
  if (x<10000);
  window.scrollTo(x,y);
  setTimeout('scroll()',50);
}

Gruß Markus

--
alles wird gut...