Rumsey Family Pages
You are currently anonymous Login
 

HomeHome    SearchSearch    PrintPrint    Login - User: anonymousLogin   

TNG Image Viewer
The TNG Image Viewer provides an easy way to view large images on your TNG website. This is particulary useful for images such as census records, which are unreadable if shrunk to fit on the screen. You can see an example here.

This has been tested on IE6, IE7, Firefox, Mozilla, Opera and Safari.

Thanks to Nicholas B. Flint who posted the original implementation on which this was based, and to http://persistent.info, from which I took the magnifier concept and adapted it for my own use.

If you like this mod, be sure to check out my others here.


Revision History
Revision 1.7 (30 June 2008)
Please Note: If you a version of the Image Viewer prior to 1.6.1 installed, you need to review the installation instructions below as there are changes to the base Javascript function that need to be incorporated in the TNG files.
- Many modifications made to the javascript to allow for the image to be sized into the iframe even if the width of the TNG table is less than 100%. The browser width is also no longer calculated and passed via cookies, so it will now work even if a user does not have cookies enabled.
- The ever-annoying "black-box" at the upper right hand corner in IE is now gone.
- Image maps would not work properly if zoom was selected to be "Fit to Width" or "Fit to Height"
- Several changes to improve compatability with Opera and Safari (it is now fully functional with Opera).

Revision 1.6.2 (14 June 2008)
- Updates necessary to work with TNG 7.0.

Revision 1.6.1 (24 Feb 2008)
- Transparency of image canvas was inadvertently reverted back to white, instead of using the background.
- The Image Viewer will shrink to meet the height of images that are less than the specified height.
- The window title when opening up an image in a new window was not displaying correctly.
- Javascript to size the Image Viewer was moved into its own file and included, which minimizes the number of lines being added to the files.

 View additional version history

Download
A zip file containing all of the necessary files can be downloaded here: img_viewer.zip

Installation instructions can be found below, as well as in the img_viewer_readme.txt file included in the zip file.


Modifications Required
Before attempting any edits on your TNG files, it is always a good idea to make a backup!

 TNG v7.x

 TNG v6.1.1 and higher

 TNG v6.1.0

 TNG v6.0.x

  This site powered by The Next Generation of Genealogy Sitebuilding ©, written by Darrin Lythgoe 2001-2008.

  Effortless Ancestry