View Full Version : call the plugin?

05-11-2010, 06:35 PM

this is going to be very easy for someone - but not me!

Sourced a nice picture viewer, but not fully understanding "call the plugin" statement. I know what this means & have searched online but not established how to implement it.

Here is the code and directions - pretty straight forward except for the above

Attach the Javascript and CSS files to your document. Edit CSS file and fix the paths to images and change colors to fit your site theme. Important: be sure to include Javascript files in the specific order as in the example below.
<link rel="stylesheet" media="screen" type="text/css" href="css/spacegallery.css" />
<script type="text/javascript" src="js/eye.js"></script>
<script type="text/javascript" src="js/utils.js"></script>
<script type="text/javascript" src="js/spacegallery.js"></script>

Invocation code
Prepare a block level element with some images inside. All you have to do is to select the elements in a jQuery way and call the plugin.
$('#myGallery').spacegallery({loadingClass: 'loading'});

Working example here http://www.sohoapart.com/alsina.asp


06-02-2010, 01:54 PM
Still no suggestions?