# adminimize/1.7.16/js/writescroll.js

Adminimize, version 1.7.16. 13 lines.

- Page: https://pluginprobe.com/plugins/adminimize/1.7.16/code/js/writescroll.js
- Raw: https://pluginprobe.com/plugins/adminimize/1.7.16/raw/js/writescroll.js
- Modified: 2011-04-01T18:18:38+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/adminimize/1.7.16/code/js/writescroll.js#L10-L20`.

```javascript
/**
 * Automatically scroll Write pages to a good position
 * code by Dougal Campbell
 * http://dougal.gunters.org/blog/2008/06/03/writescroll
 */
jQuery(function($) {
	// element to scroll
	var h = jQuery('html');
	// position to scroll to
	var wraptop = jQuery('div#wpbody').offset().top;
	var speed = 250; // ms
	h.animate({scrollTop: wraptop}, speed);
});
```
