»
EnglishFrenchVietnamese

Print - Grab and Scroll Page - JavaScriptBank.com

Full version: jsB@nk » Browser » Page effect » Grab and Scroll Page
URL: https://www.javascriptbank.com/grab-and-scroll-page.html

Grab and Scroll Page © JavaScriptBank.comUsers can scroll the page by clicking on it and dragging the mouse, similar to the functionality found in the Acrobat viewer.

Full version: jsB@nk » Browser » Page effect » Grab and Scroll Page
URL: https://www.javascriptbank.com/grab-and-scroll-page.html



JavaScript
<script type="text/javascript"><!-- Begin// Grab and Scroll Page// Created by: Abraham Joffe :: http://www.abrahamjoffe.com.au/document.onmousedown = function(){  var e=arguments[0]||event;  var x=document.body.scrollLeft+e.clientX;  var y=document.body.scrollTop+e.clientY;  document.onmousemove=function(){    scrollTo(x-e.clientX, y-e.clientY);    return false;  }  document.onmouseup=function(){    document.onmousemove=null;  }  return false;}// End --></script><!--    This script downloaded from www.JavaScriptBank.com    Come to view and download over 2000+ free javascript at www.JavaScriptBank.com-->


HTML
<BODY style="cursor: move"><!--    This script downloaded from www.JavaScriptBank.com    Come to view and download over 2000+ free javascript at www.JavaScriptBank.com-->