//////////////////////////////////////////////////////////////////////////////////////////////// // // rpViewer - Popup JavaScript Image Viewer // // made by: // Russ Prince 01-11-2004 // Latest Changes: 07-09-2009 // // Feel free to use as you see fit. // //////////////////////////////////////////////////////////////////////////////////////////////// rpViewer is a free JavaScript image viewer for people that have lots of pictures on websites but don't want the hassle of over complicated web pages to view them. This package can be used on your current image web pages with nearly no changes to the original html code. If you're tired of having to hit the back button after clicking on every image then this script is perfect for you. - Russ Prince (01-11-2004) Installation: ============= Step 1: Unzip rpViewer.zip into the root of your website Step 2: Test installation by opening http://yourwebsiteaddress/rpViewer/rpViewer_test.html If it opens correctly then you have properly installed rpViewer Usage: ====== rpViewer is now super extremely simple to use. It just requires you to add one line of code at the bottom of your html page. rpViewer automatically looks for any links to images and will pop them up in a popup window to make browsing them easier. To use just simply follow these directions: Open up your htm file for editing. Make sure you can view the code. Notepad works well. Place this single line at very end (bottom) of your html code: Optional Customizations: ======================== There are a few variables you can change to alter the images that rpViewer finds and how it looks. Add the any or all following code ABOVE the line in step 1 so that when rpViewer initializes it uses these settings. The values listed here are the default values used. How it works ============ The magic here is in the ability for JavaScript to communicate information from window to window. The code that does all of the actual work is in the 'rpViewer.js' file which gets included in all of the pages you have image links on. There really isn't too much that it needs to do other than just keep track of the total number of images, and a counter that indicates what the current image being viewed is. The 'rpViewer_pic.htm' file has a bunch of functions that basically call the functions in the 'rpViewer.js' file to shuffle the counter around, and to get the image names. The 'viewer_buttons.htm' just has a few buttons on it that call a few of the functions in the 'rpViewer_pic.htm' file. Both the 'rpViewer_pic.htm' and 'viewer_buttons.htm' files include the 'viewer_keys.js' code for the keyboard shortcuts to all of the functions in the 'rpViewer_pic.htm' file. - Russ Prince