Javascript:Capture Scroll Coordinates

Aus Weis nix

Wechseln zu: Navigation, Suche

Capture Scroll Coordinates - Javascript Source

function scrollCoordinates() {
  var x = (document.all)?document.body.scrollLeft:window.pageXOffset;
  var y = (document.all)?document.body.scrollTop:window.pageYOffset;
  alert ("x="+x+" y="+y);
 }
Persönliche Werkzeuge