</head>
<body onload="onSearch();">
- <form>
+ <form onmouseenter="ToolTip.stopTooltipTimer();">
<input id="search" onclick="onSearch();" type="button" value="Search"/>
<span class="term">Author: <input id="aut" type="text"/></span>
<span class="term">Title: <input id="tit" type="text"/></span>
<div id="details" class="tooltip" onclick="hideDetails();">(No information available)</div>
<script src="modernizr-custom.js"></script>
- <script src="all.js"></script>
+ <script src="lib.min.js"></script>
</body>
</html>
}
result += '</a></td>'
+ '<td onclick="displayDetails(' + book.Id + ');" '
- + ' onmouseover="ToolTip.startTooltipTimer(' + book.Id + ');">'
+ + ' onmouseover="ToolTip.startTooltipTimer(' + book.Id + ');"'
+ + ' onmouseleave="ToolTip.stopTooltipTimer();">'
+ '<p><b>' + book.Title + '</b></p>'
+ '<p>'
+ '<i>' + book.AuthorReading + '</i>';
var deltaX = Math.abs(x - mousePos.x);
var deltaY = Math.abs(y - mousePos.y);
-
- if ( deltaX > threshold
- || deltaY > threshold )
+
+ if ( (deltaX > threshold)
+ || (deltaY > threshold) )
{
+ my.stopTooltipTimer();
my.hideDetails();
}
};
clearTimeout(timer);
timer = undefined;
- my.hideDetails();
};
// ===============