PDA

View Full Version : DHTML tooltip script II



CRaB
07-06-2005, 05:29 PM
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

jscheuer1
07-06-2005, 06:22 PM
Try this, comment out these lines by changing this:

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

//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.

CRaB
07-07-2005, 03:43 AM
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