Here is the complete HTML for the file. Make sure you specify proper path for the Tooltip.js file. Translucency is obtained by using the ‘alpha’ filter in IE and simply setting ‘opacity’ in style for FireFox.
Move your mouse over following lines: Line One Line Two
<STRONG> Move your mouse over following lines:<br><br> <span class="ttip" onmouseover=if(t1)t1.Show(event,l1) onmouseout=if(t1)t1.Hide(event)> Line One </span><br> <span class="ttip" onmouseover=if(t1)t1.Show(event,l2) onmouseout=if(t1)t1.Hide(event)> Line Two </span> </STRONG>
</body> <script> var t1=null; var l1="Tooltip for line one"; var l2="Tooltip for line two"; function init() { t1 = new ToolTip("a",true,40); } </script> </html>