this based on a jquery
first create a new information page
www.yourdomainname.com/admin
------------------------------------------catalog -> information -> insert (create a new page there)
once you are done with that then you do is download this file. http://www.easy-share.com/1913994863/gallery.zip
then upload it to your server
--make sure to create a new folder within your opencart
ie. http://www.yourdomainname.com/gallery *** make sure you are linking the file folders correctly, if you plan to change the gallery or want to rename it****
insert this code **make sure to change the names of the images and etc as you need** into your newly created gallery information page.
Code: Select all
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4/jquery.min.js"></script>
<script>
!window.jQuery && document.write('<script src="jquery-1.4.3.min.js"><\/script>');
</script>
<script type="text/javascript" src="http://www.yourdomainname.com/gallery/fancybox/jquery.mousewheel-3.0.4.pack.js"></script>
<script type="text/javascript" src="http://www.yourdomainname.com/gallery/fancybox/jquery.fancybox-1.3.4.pack.js"></script>
<link rel="stylesheet" type="text/css" href="http://www.yourdomainname.com/gallery/fancybox/jquery.fancybox-1.3.4.css" media="screen" />
<link rel="stylesheet" href="style.css" />
<script type="text/javascript">
$(document).ready(function() {
/*
* Examples - images
*/
$("a#example1").fancybox();
$("a#example2").fancybox({
'overlayShow' : false,
'transitionIn' : 'elastic',
'transitionOut' : 'elastic'
});
$("a#example3").fancybox({
'transitionIn' : 'none',
'transitionOut' : 'none'
});
$("a#example4").fancybox({
'opacity' : true,
'overlayShow' : false,
'transitionIn' : 'elastic',
'transitionOut' : 'none'
});
$("a#example5").fancybox();
$("a#example6").fancybox({
'titlePosition' : 'outside',
'overlayColor' : '#000',
'overlayOpacity' : 0.9
});
$("a#example7").fancybox({
'titlePosition' : 'inside'
});
$("a#example8").fancybox({
'titlePosition' : 'over'
});
$("a[rel=example_group]").fancybox({
'transitionIn' : 'none',
'transitionOut' : 'none',
'titlePosition' : 'over',
'titleFormat' : function(title, currentArray, currentIndex, currentOpts) {
return '<span id="fancybox-title-over">Image ' + (currentIndex + 1) + ' / ' + currentArray.length + (title.length ? ' ' + title : '') + '</span>';
}
});
/*
* Examples - various
*/
$("#various1").fancybox({
'titlePosition' : 'inside',
'transitionIn' : 'none',
'transitionOut' : 'none'
});
$("#various2").fancybox();
$("#various3").fancybox({
'width' : '75%',
'height' : '75%',
'autoScale' : false,
'transitionIn' : 'none',
'transitionOut' : 'none',
'type' : 'iframe'
});
$("#various4").fancybox({
'padding' : 0,
'autoScale' : false,
'transitionIn' : 'none',
'transitionOut' : 'none'
});
});
</script>
</head>
<body>
<div id="content">
<h1> </h1>
<p><br />
<a id="example1" href="http://www.yourdomainname.com/gallery/example/1_b.jpg"><img alt="example1" src="http://www.yourdomainname.com/gallery/example/1_s.jpg" /></a>
<a id="example2" href="http://www.yourdomainname.com/gallery/example/2_b.jpg"><img alt="example2" src="http://www.yourdomainname.com/gallery/example/2_s.jpg" /></a>
<a id="example3" href="http://www.yourdomainname.com/gallery/example/3_b.jpg"><img alt="example3" src="http://www.yourdomainname.com/gallery/example/3_s.jpg" /></a>
<a id="example4" href="http://www.yourdomainname.com/gallery/example/4_b.jpg"><img class="last" alt="example4" src="http://www.yourdomainname.com/gallery/example/4_s.jpg" /></a>
</p>
</div>
</div>
</body>
</html>
if you have any issues please let me know...