PDA

View Full Version : Don't know how to attach pointer onCool DHTML Tooltip II



jimodity
02-23-2006, 08:27 PM
:eek: Don't know how to attach pointer onCool DHTML Tooltip II.

I have downloaded the pointer gif image to my GoLive Site.
I have also copied the code to the header and body plus the pointer code to a specific link.

I don't know how to attach the pointer image to the text box? Is there a specific spot in the code that I'm supposed to add the image?

Jim

Twey
02-23-2006, 08:37 PM
Add to any element:

style="cursor:url(mycursor.cur);"

jimodity
02-23-2006, 09:07 PM
Hi Twey: I have added: style="cursor:url(mycursor.cur);" to an element in the body of the page but nothing happened.

Here is the url for the http://www.dynamicdrive.com/dynamicindex5/dhtmltooltip2.htm for the Cool DHTML Tooltip II.

Jim

jimodity
02-23-2006, 10:58 PM
Hi fellow frustrated web designers:

I am really new to javascript and dhtml - I'm not sure anybody really understands my question because it's so elementary.

I have a gif picture of the pointer and I have no idea how or where in the source code to connect it to the tool tip. Maybe I need an example and have it really spelled out for me.

Jim

jscheuer1
02-24-2006, 06:00 AM
Here is the place in the code that the pointer image is acquired by the script:


document.write('<img id="dhtmlpointer" src="arrow2.gif">') //write out pointer image

The red part is the name of the pointer image file. If the pointer image is in the same folder as the script, this is all that is required. If it is in another folder, the relative folder location or the exact (absolute) path of the image should be used -

relative folder location:


document.write('<img id="dhtmlpointer" src="images/arrow2.gif">') //write out pointer image

absolute path:


document.write('<img id="dhtmlpointer" src="http://www.mydomain.com/images/arrow2.gif">') //write out pointer image

Note: Both examples are with the script in the root and the image in a directory called 'images' attached to the root.

jimodity
02-24-2006, 07:30 AM
Hi John:

Wow, that explanation was just what I needed. I can't believe I got it to work.

Much thanks,

Jim