View Full Version : Conveyor belt slideshow script with Cool DHTML tooltip script II

10-02-2009, 06:56 AM
1) Script Title: tooltip for conveyor belt

2) Script URL (on DD):
3) Describe problem:

I need to customize the title/alt for images that appear within a conveyor belt script.

since there's no css way i know of to changing image title I tried using a tooltip script.

once i ad the mouse over functions of the tooltip script to the conveyor script as below:

leftrightslide[0]='<a href="http://" onMouseover="ddrivetip('JavaScriptKit.com JavaScript tutorials', 300)";
onMouseout="hideddrivetip()"><img src=http://www.maayangoldman.com/images/sb8_1.jpg border=0 title="model"></a>'

the whole belt is not appearing. can anyone please help or suggest another way of solving that?

10-02-2009, 05:03 PM
First of all, that should be all on one line (I know, it may have gotten wrapped before I formatted it - what matters is how it appears in your source code).

Second, you should quote the URL of the image.

Third, you cannot nest like delimiters (in this case the single quote ' character) in a string without escaping them (\'), try this:

leftrightslide[0]='<a href="http://" onmouseover="ddrivetip(\'JavaScriptKit.com JavaScript tutorials\', 300);" onmouseout="hideddrivetip();"><img src="http://www.maayangoldman.com/images/sb8_1.jpg" border=0 title="model"></a>';