PDA

View Full Version : Image w/ description tooltip v2.0 - Image fade-in and out possible?



vegeman
12-09-2013, 03:12 PM
Image w/ description tooltip v2.0

http://www.dynamicdrive.com/dynamicindex4/imagetooltip.htm

This script is working great but I was wondering if there is a .js mod to allow the tooltip image on hover to fade in and out?

Thank you.

jscheuer1
12-09-2013, 05:51 PM
Using a text only editor like NotePad, look inside ddimgtooltip.js and change these two functions as shown (highlighted):


showbox:function($, $tooltip, e){
$tooltip.stop(true, true).fadeIn('slow')
this.positiontooltip($, $tooltip, e)
},

hidebox:function($, $tooltip){
$tooltip.stop(true, true).fadeOut('slow')
},

Save and use that version of the script.

The browser cache may need to be cleared and/or the page refreshed to see changes.

If you want more help, please include a link to the page on your site that contains the problematic code so we can check it out.

vegeman
12-09-2013, 06:04 PM
Hi John,

Worked great in all browsers, thanks !!!