Pastoid

The page you are looking at now is at this URL: http://pastoid.com/bze

This paste was last updated on January 27, 2010 at 1:54 am.

Pasted Coderaw

function scrollkeys( event )
{
	var scrollAmt = 0;
 
		switch(event.keyCode) {
			case 32:
				// space or shift-space
				event.preventDefault();
				if( event.shiftKey )
					window.scrollBy(  (-1 * window.innerWidth), 0  );
				else
					window.scrollBy(  window.innerWidth, 0  );
				break;
 
			case 33:
				// pgup
				event.preventDefault();
				window.scrollBy(  (-1 * window.innerWidth), 0  );
				break;
 
			case 34:
				// pgdn
				event.preventDefault();
				window.scrollBy( window.innerWidth, 0 );
				break;
 
			case 35:	
				// end
				event.preventDefault();
				window.scrollTo( 999999, 0 );
				break;
 
			case 36:
				// home
				event.preventDefault();
				window.scrollTo( 0, 0 );
				break;
		}
	return( false );
}

Toggle wordwrap

Referring DomainHits
Unknown Referer 127
pastoid.com 5
Is this paste spam?
<Hide