Kod:
<!-- TWO STEPS TO INSTALL GRAB AND SCROLL PAGE:
1. Copy the coding into the HEAD of your HTML ********
2. Add the style element into the BODY tag -->
<!-- STEP ONE: Paste this code into the HEAD of your HTML ******** -->
<HEAD>
<script type="text/javascript">
<!-- Begin
/* This script and many more are available free online at
The JavaScript Source!! http://javascript.internet.com
Created by: Abraham Joffe :: http://www.abrahamjoffe.com.au/ */
********.onmousedown = function(){
var e=arguments[0]||event;
var x=********.body.scrollLeft+e.clientX;
var y=********.body.scrollTop+e.clientY;
********.onmousemove=function(){
scrollTo(x-e.clientX, y-e.clientY);
return false;
}
********.onmouseup=function(){
********.onmousemove=null;
}
return false;
}
// End -->
</script>
<!-- STEP TWO: Insert the style element into your BODY tag -->
<BODY style="cursor: move">
<p><center>
<font face="arial, helvetica" size"-2">Free JavaScripts provided<br>
by <a href="http://javascriptsource.com">The JavaScript Source</a></font>
</center><p>
<!-- Script Size: 1.01 KB -->