Image Navigator
General
This script works by sliding the background image of one DIV element, using the background-position to correspond with the coordinates of another DIV. Great for showing details in a small space.
Click and drag the red outlined square on the bottom photo to navigate the zoomed image.
Notes
- Created by: Steve Chipman
- Web Site: http://slayeroffice
Source Code
Paste this source code into the designated areas.
External file
Paste this code into an external JavaScript file named: imageNavigator.js
CSS
Paste this code into your external CSS file or in the <style> section within the HEAD section of your HTML document.
Head
Paste this code into the HEAD section of your HTML document.
Body
Paste this code into the BODY section of your HTML document


Leave a Response
(1 comment)The js image enlarging rectangle works great. I intend to use it to magnify my wife's art gallery page. Allowing viewers to "take a peek" at the art, without having to load an image which could be too large for some screen resolutions.[br /][br /]Thanks!