blog by

rob kircher

Saturday, December 27, 2008

A little Java..... script can go a long way

Yes this is a post that only the geeks will appreciate. Sorry.

So I was bored this morning and while looking over my photo website I decided to add some code that would handle keyboard navigation with in the galleries. Added one function to handle the keyboard message and a line of code to each page and walla you can now navigate the galleries with out touching the mouse.

Move forward with the right arrow key, space bar, or the enter key
Move backwards with the left arrow key
Move to the first image with the up arrow or the home key
Move to the last image with the down arrow or the end key.

Fun, fun, fun. ;-)

No comments:

Post a Comment