Facebook and myspace both have a nice feature in the photo galleries, when you go to an image page, a page with the user’s image and user comments on the page. You can hit you keyboard left and right arrow key and the page will load the next page, it does it super fast, if you held down the key it would go fast through many pages. I know this is mostly with javascript, my main question is how to make the new pages load all soo quickly?
Im using PHP/mysql/Javascript
You’d capture the keys the user is pressing, and response for left-arrows and right-arrows. Capturing keys isn’t all that difficult:
You’d want to adapt that code to your liking. If the right arrow was click, fire off a request to
get-image.php?direction=next&user=12838203and if it were the back-arrow, simply swap out “next” for “prev”.