Results 1 to 6 of 6

Thread: Don't know how to attach pointer onCool DHTML Tooltip II

  1. #1
    Join Date
    Feb 2006
    Location
    California
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Cool Don't know how to attach pointer onCool DHTML Tooltip II

    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

  2. #2
    Join Date
    Jun 2005
    Location
    英国
    Posts
    11,876
    Thanks
    1
    Thanked 180 Times in 172 Posts
    Blog Entries
    2

    Default

    Add to any element:
    Code:
    style="cursor:url(mycursor.cur);"
    Twey | I understand English | 日本語が分かります | mi jimpe fi le jbobau | mi esperanton komprenas | je comprends français | entiendo español | tôi ít hiểu tiếng Việt | ich verstehe ein bisschen Deutsch | beware XHTML | common coding mistakes | tutorials | various stuff | argh PHP!

  3. #3
    Join Date
    Feb 2006
    Location
    California
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    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/dynamici...mltooltip2.htm for the Cool DHTML Tooltip II.

    Jim

  4. #4
    Join Date
    Feb 2006
    Location
    California
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    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

  5. #5
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    Here is the place in the code that the pointer image is acquired by the script:

    Code:
    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:

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

    Code:
    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.
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

  6. #6
    Join Date
    Feb 2006
    Location
    California
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Hi John:

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

    Much thanks,

    Jim

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •