By default the script assumes the path to the large image is defined as the href attribute value of the thumbnail link. In order to make the thumbnail a functional link, we need to modify the script so it relies on another attribute of the thumbnail to store the enlarged image path. The below modified script does this, by using the attribute "data-largeimage" instead. With it, the following is a sample thumbnail link markup:
Code:
<a href="http://cnn.com" data-largeimage="http://www.nasa.gov/images/content/167040main_image_feature_738_ys_4.jpg" rel="enlargeimage" rev="targetdiv:loadarea" title="The Universe is just waiting to be explored">Saturn #1</a>
Bookmarks