The mega image viewer jQuery plugin allows you to easily replace <div> tags
with animated image viewers.
Viewer used for displaying high-resolution object (image - JPG, PNG, GIF).
Viewer displays the given display object inside the user-defined viewport area.
Viewer allows to control the position and zoom of the object displayed
inside the viewport. Viewer controls the sliding and zoom of the displayed object
so that the viewport area will be filled completely.
If the viewport size is greater than the size of the displayed object,
the object is scaled over 100% to fit the viewport (zoom is disabled).
This is an example of using the plugin for a single viewer on your website. jQuery plugin lhpMegaImgViewer lets you create several viewer instances. All you need to do is to include the necessary JavaScript files in the <head> section (details in the docs), adjust the settings to fit your needs and activate the plugin (for chosen elements) by pasting the JavaScript code below.
CUSTOMIZE:
<div id="myDiv" style="width:500px; height:300px; overflow:hidden; border:solid 1px #a6a6a6;"></div>
This is an example of using the plugin methods. Use this code if you want to create your own navigation menu.
var pluginMethodsStt = { 'viewportWidth' : '100%', 'viewportHeight' : '100%' }; $('#secCntr').lhpMegaImgViewer(pluginMethodsStt);html code:
<div id="secCntr" style="width:450px; height:500px; overflow:hidden;">
<img src="img/2.jpg"/>
</div>
This is an example of using the lhpMegaImgViewer plugin for building a thumbnail gallery on your website.