PDA

View Full Version : I Need Help



joshua parton
09-24-2004, 12:35 AM
i'm new to this stuff but i know the basics....i think...lol...but anyways i'm trying one of the free scripts...(Image w/ description tooltip) and i can't figure out how to put my own images in there...will someone please help me! thanx....Josh :D

ddadmin
09-24-2004, 06:57 PM
Please post a link to the script in question in the future, in this case: http://www.dynamicdrive.com/dynamicindex4/imagetooltip.htm

By putting images, do you mean replacing the text links that activiate the tooltip with images instead? If so, simply replace the HTML from:


<a href="#" onmouseover="doTooltip(event,0)" onmouseout="hideTip()">Link 1</a><br>
to:


<a href="#" onmouseover="doTooltip(event,0)" onmouseout="hideTip()"><img src="myimage.gif"></a><br>

joshua parton
09-25-2004, 07:59 PM
i'm talking about once you put your pointer on the link and the pic comes up...well ita a duck....how do i chang that picture? thanx again....josh

cr3ative
09-26-2004, 04:41 AM
Hi Joshua,

Simply change the names of the image files from red_baloon.gif to whatever you desire, the same with the other 2 lines.



messages[0] = new Array('red_balloon.gif','Here is a red balloon on a white background',"#FFFFFF");
messages[1] = new Array('duck2.gif','Here is a duck on a light blue background.',"#DDECFF");
messages[2] = new Array('test.gif','Test description','black','white');


cr3ative

joshua parton
09-26-2004, 12:17 PM
i've done that but it still doesn't show up the pic i have chosen....does the type of pic (.jpg or gif) matter in this sitituation? Thanx for all your help :rolleyes: josh

cr3ative
09-26-2004, 12:26 PM
Try absolute rather than relative image locations, for example


www.imagehost.com/imagefolder/image.gif

instead of


image.gif

Regards
cr3ative