I don't think it makes a difference but here and similar (from your post):
Code:
rev="targetdiv:loadarea ,trigger:click,enabletitle:no"
There should be no space there.
The real problem is that the script doesn't perform as advertised (from the demo page):
enabletitle: yes|no "yes" enabletitle is set to "yes" by default, with the effect being that if your thumbnail link carries a "title" attribute, the script will use that to show a description beneath the enlarged image:
<a href="myimages/first.jpg" title="This is a picture of my dog!" rel="enlargeimage" rev="targetdiv:loadarea">Thumbnail</a>
To stop a description from showing, either set enabletitle to "no" or simply remove the "title" attribute from the thumbnail.
So we have to fix the script in order to make it do what was promised. Find this highlighted line in the thumbnailviewer2.js file:
Code:
/*Image Thumbnail Viewer II (May 19th, 2010)
* This notice must stay intact for usage
* Author: Dynamic Drive at http://www.dynamicdrive.com/
* Visit http://www.dynamicdrive.com/ for full source code
*/
jQuery.noConflict()
jQuery.thumbnailviewer2={
loadmsg: '<img src="spinningred.gif" /><br />Loading Large Image...', //HTML for loading message. Make sure image paths are correct
/////NO NEED TO EDIT BEYOND HERE////////////////
dsetting: {trigger:'mouseover', preload:'yes', fx:'fade', fxduration:500, enabletitle:'yes'}, //default settings
buildimage:function($, $anchor, setting){
var imghtml='<img src="'+$anchor.attr('href')+'" style="border-width:0" />'
if (setting.link)
imghtml='<a href="'+setting.link+'">'+imghtml+'</a>'
imghtml='<div>'+imghtml+((setting.enabletitle && $anchor.attr('title')!='')? '<br />'+$anchor.attr('title') : '')+'</div>'
return $(imghtml)
},
showimage:function($image, setting){
$image.stop()[setting.fxfunc](se . . .
Change it to (addition highlighted):
Code:
imghtml='<div>'+imghtml+((setting.enabletitle !== 'no' && $anchor.attr('title')!='')? '<br />'+$anchor.attr('title') : '')+'</div>'
Note: Ordinarily I don't like editing the main script if it can be avoided. However, in this case it seems appropriate because it's supposed to do this and doesn't.
Bookmarks