PDA

View Full Version : DHTML tooltip script II Help



Morty222
11-02-2006, 09:37 PM
1) Script Title: DHTML tooltip script II

2) Script URL (on DD): http://www.dynamicdrive.com/dynamicindex5/dhtmltooltip2.htm

3) Describe problem:

The script works fine, however it is interferring with another script I use for the menu. The menu works fine on all other pages except where I have the tool tip script.

The site can be seen on the development server here:

http://www.mortondev.com/ncb/quote.php

The menu is QuickMenu Pro.

jscheuer1
11-03-2006, 12:15 PM
There is a conflict with the document.onmousemove handler. Try replacing this in the tooltips.js script (at the end of it):


document.onmousemove=positiontip

with:


if ( typeof window.addEventListener != "undefined" )
document.addEventListener( "mousemove", positiontip, false );
else if ( typeof window.attachEvent != "undefined" )
document.attachEvent( "onmousemove", positiontip );
else {
if ( document.onmousemove != null ) {
var oldOnmousemove = document.onmousemove;
document.onmousemove = function ( e ) {
oldOnmousemove( e );
positiontip(e);
};
}
else
document.onmousemove = positiontip;
}

There could be other problems.

Morty222
11-03-2006, 02:15 PM
It fixed it, thank you very much.

plankalkul
03-24-2007, 04:47 AM
Fixed my problem as well.

Keywords: Milonic Menu ToolTip Dynamic Drive Conflict OnMouseMove