View Full Version : disable title on hover in thumbnail

10-03-2010, 09:01 AM
1) Script Title: Image Thumbnail Viewer II

2) Script URL (on DD): http://www.dynamicdrive.com/dynamicindex4/thumbnail2.htm

3) Describe problem: I have a script of thumbnail to enlarge gallery and when I'm hovering over the thumbnail all the title attribute contents appear, and I would like to cancel that.

<a href="images\M_1.png" rel="enlargeimage" rev="targetdiv:loadarea ,trigger:click,enabletitle:no" title="somthing<br><h2> and more</h2><h3>why not "><img src="images\tmb_M_1.jpg" rel="shadowbox=no" width="65" height="43" border="1"/></th>
<th width="99" align="left" valign="top" scope="col">

10-03-2010, 09:51 AM
The enabletitle property is only as regards whether or not the title attribute is used as a description beneath the larger image. I'm assuming you want that. In which case you should set it to yes or just omit it.

There's no closing </a> tag in the example code in your post and no closing </h3> tag in its title attribute. These will cause problems in some browsers.

To stop the title from appearing as a tooltip onmouseover of the trigger, set another title, or an empty title on the thumbnail image (additions/changes highlighted):

<a href="images\M_1.png" rel="enlargeimage" rev="targetdiv:loadarea,trigger:click,enabletitle:yes"
title="somthing<br><h2> and more</h2><h3>why not</h3>"><img src="images\tmb_M_1.jpg" rel="shadowbox=no"
title="something I want the user to see on hover" width="65" height="43" border="1"/></a>


<a href="images\M_1.png" rel="enlargeimage" rev="targetdiv:loadarea,trigger:click"
title="somthing<br><h2> and more</h2><h3>why not</h3>"><img src="images\tmb_M_1.jpg" rel="shadowbox=no"
title="" width="65" height="43" border="1"/></a>

10-03-2010, 10:51 AM
hi john
thank you
you are very helpful now everything is working properly.

by the way i`m more into flash than html or css or js though i have to say i have learned a lot from this project and your answers

if u want u can visit my flash web site-- its not in english

i`m a baker, give my your feedback if u want