Script Summary: Improves the interface of BayImg.com, adds image preview, preloading with progress bar, sort for clouds, keyboard shortcuts, and more.
Shows the searches on BayImg.com full-page, in a more ergonomic look.
It Also adds a full-screen preview of images so when you click the thumbnails a full-screen version appears of it. It's resized to fit the screen if it's too big, and an animated progress bar shows it's loading progress. Click anywhere to return to the search results.
It adds the following Keyboard Shortcuts:
> - Next Page
< - Previous Page
M - Next Image (in Preview mode) and Start Preview Mode (in Normal mode)
N - Previous Image (in Preview mode)
ESCAPE - Exit Preview Mode
The page uses AJAX to change search results pages so the page doesn't refresh at all and loads very fast. Talk about Web 2.0 :)
Normal View:

Image Preview (while image is loading):

Image Preview:

New in version 2.1:
- Centered Image on preview correctly.
- The load bar doesn't show at all if showing a cached image.
- Minor bug fixes.
New in version 2.51:
- Interface improvements for the entire site, among which:
+ The image pages now has a "Direct link to image" button and cleaner interface.
+ The clouds page now has visited links in orange.
- Precaching of images for faster preview, with progress bar (displayed under the menu).
- Fixed a few minor bugs.
New in version 2.55:
- Changed source code to reflect changes made to the site.
New in version 2.6:
- Added Sort by buttons in cloud page, you can sort by date, name or count (it caches the sorted html links for faster execution, but is still a bit slow, suggestions are welcome).
New in version 2.7:
- Updated script to support interface changes.
- Optimized parts of code.
New in version 2.71:
- Minor bug fix to image precaching bar which dissapeared when changing page.
For suggestions or impressions leave a comment.



