|
Script Summary:
Displays a larger version of any photo on studivz.net just by moving the mouse over it |
this script has 2 topics, 24 posts |
This script has no reviews. |
This script follows a different approach than the "StudiVZ: Mitgliederfotos zoomen" one.
It loads the large version of all images right after opening the page, instead of waiting for you to move over an image first. So when you move your mouse over a small image, the large one pops up immediately, without any delay.
Also the large image is positioned inside a small red-white frame to fit right into the studivz design.
And when you move the mouse, the large image moves along with it.
It always shows up on the side, where the most space is left to display it...
This works for virtually any image on studivz, which has a larger version on the server as well.
I.e. profile photo, album preview photo, image preview photo...
Have fun with this
EDIT: new feature:
Since my new screen has a much higher resolution, I felt that even the large images are quite small. So I added code to actually resize the image to use all the space left or right of the mouse cursor. Since this obviously results in a loss of picture quality, I made it easily adjustable. You can set the variable 'maxZoomFactor' to the value 1.0 to switch off the additional resizing or to something like 2.0 to get larger images.
EDIT: new feature: SlideShow mode
Inspired by some other userscripts, I decided to put in a SlideShow mode to view all photos from the current page in fullscreen.
To enter the SlideShow mode, just click the 'SlideShow' link that appears at the bottom of the menu on the left hand side.
The keys are:
next: right/down arrow, space or click the image
prev: left/up arrow, backspace, 'b'
exit: ESC or click the background
EDIT: fixed issue with the new menu layout
EDIT: made the image popup design independent
EDIT: added popup delay feature:
You can edit the value of the variable 'popupDelayTime' at the top of the script to add a small delay before the large image pops up. The value is in milliseconds, so sensible values would be between 0 and 1000.
EDIT: added "onclick" event for the photos in the normal album view, so that the image links to the next image
EDIT: fixed bug which broke the "link people to photos thing", because of the "onclick" event...
Feedback is always welcome!





