Results 1 to 3 of 3

Thread: DHTML tooltip script II

  1. #1
    Join Date
    Jul 2005
    Location
    Canada
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Exclamation DHTML tooltip script II

    I have applied this wonderful script, to the calendar, on this page:

    http://www.morrisfellowship.ca/events.html

    All seems to work well until I put the cursor over one of the
    far right, red dots.

    The "arrow2" image does not appear on top of the text box.
    The text box also moves to the left of the cursor.

    Is there a way to correct this issue?

    CRaB

  2. #2
    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

    Try this, comment out these lines by changing this:
    Code:
    if (rightedge<tipobj.offsetWidth){
    //move the horizontal position of the menu to the left by it's width
    tipobj.style.left=curX-tipobj.offsetWidth+"px"
    nondefaultpos=true
    }
    else if (curX<leftedge)
    to this (additions red):
    Code:
    //if (rightedge<tipobj.offsetWidth){
    //move the horizontal position of the menu to the left by it's width
    //tipobj.style.left=curX-tipobj.offsetWidth+"px"
    //nondefaultpos=true
    //}
    //else if (curX<leftedge)
    if (curX<leftedge)
    Those extreme right tips should now appear to the right of the calendar entries that they are triggered by with the arrow but, might be too far to the right if so, we can try to fudge it some more.
    - John
    ________________________

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

  3. #3
    Join Date
    Jul 2005
    Location
    Canada
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Thumbs up It Worked!

    Thank you, Thank you, Thank you.

    I don't understand ONE thing about java lingo, would love to learn,
    I just know that the changes worked.

    Your kindness to help me is so much appreciated!

    Again, many thanks.
    Kim

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
  •