View Full Version : Accept variable to define anchor point?

ARCLite Studio
07-20-2010, 03:22 PM
1) Rich HTML Balloon Tooltip

2) http://www.dynamicdrive.com/dynamicindex5/balloontooltip.htm

3) Currently I am scrolling a series of images in a div using the following script in conjunction with the ballon tooltip scrip:

Text and Image Crawler

firstly I am not a programmer and as such I use scripts when needed but dont have the working knowledge to modify them greatly. Now the problem, both scripts work just fine but the tool tip created by the balloon script attaches itself to the upper left corner of the anchor point (in this case the whole image), but because the image is scrolling to the left the balloon tip drags/scrolls to the left with the image off screen. Additionally, if half of the image is scrolled off the screen/div then the partial image is touched by the mouse the balloon tip is trigger again but still uses the (now off screen) upper left corner of the image, creating only a half visible tool tip. I need the balloon/tool tip to trigger onmouseover as normal but attach itself to a fixed anchor point elswhere, such as a DIV ID, that way the scrolling of the image won't cause the tool tip to drag/follow the upper left corner of the image as it moves. Can the code in balloontip.js be modified to accept a variable that defines what to target as the anchor point?