OK, use this modified version of the script (right click, 'save as'):
Attachment 3422
This accomplishes two changes:
- It no longer uses the title attribute for the description. Now it's the name attribute.
- If you specify a description id in the rel attribute (see below), and have a division with that id, that's where the description will show up. Otherwise it will be as before, showing up in the same div as the image.
So you can do like:
Code:
<a href="some_image.jpg" rel="enlargeimage:descarea" rev="targetdiv:loadarea,trigger:click" name="The Universe is just waiting to be explored">Saturn #1</a>
The only real changes are highlighted. descarea is the id of the separate description area. You may use any valid unique id here. In this example you would want a division on the page like so:
Code:
<div id="descarea"></div>
If you have that, that's where the description (from the name attribute) will show up. You may style this division any way you like and place it wherever you like in your layout.
But, looking at your page I see that might be a bit cumbersome, a lot to fit into the name attribute of a tag. So with this update you can use an alternative method. Instead of putting the description in the name attribute, use a keyword, ex:
Code:
<a href="some_image.jpg" rel="enlargeimage:descarea" rev="targetdiv:loadarea,trigger:click" name="saturn">Saturn #1</a>
Now, doing just that would simply change the description from:
The Universe is just waiting to be explored
to:
But if you also set up a script in the head:
Code:
<script type="text/javascript">
var descarea = {
isthumbnailviewer2descs: true, //required
saturn: '<b>Saturn</b> is the second largest planet in our solar system.',
moon: '"The moon is a harsh mistress."' // <-- no comma after last entry
}
</script>
Where descarea is the same word you used to define the separate description division's id, and saturn is the keyword you used, you will get:
Saturn is the second largest planet in our solar system.
Any questions, feel free to ask.
Bookmarks