top

First Example / Basic Usage

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.

interactiv

CUSTOMIZE:

resize

javascript code:

				html code:
<div id="myDiv" style="width:500px; height:300px; overflow:hidden; border:solid 1px #a6a6a6;"></div>

top

Second Example / Plugin Methods

This is an example of using the plugin methods. Use this code if you want to create your own navigation menu.

javascript code:
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>


top

Thrid Example / Thumbnail Gallery

This is an example of using the lhpMegaImgViewer plugin for building a thumbnail gallery on your website.


top

Fourth Example / ColorBox Gallery

The last example shows the usage of the lhpMegaImgViewer plugin in ligthbox gallery. This example using ColorBox, w lightweight customizable lightbox plugin for jQuery.