-- ToolTip --

touch me

(tooltip on the right of the div - delay 0.5 sec)

touch me, touch me, touch me, touch me, touch me, touch me, touch me, touch me, touch me, touch me, touch me, touch me, touch me, touch me
(tooltip follows the mouse)

(tooltip on 500px left of page - delay 1sec)

center

(tooltip on the left of the div)

touch me again :)

(tooltip on the position 700px x 300px of the page)




Documentation

Params

HowTo


new ToolTip('element', {...options....});

Ex: 

<script language="javascript" src="prototype.js"></script>

......

<div id="mylayer" style="width: 200px; display: none; position: absolute;">
    <div id="mytextLayer"></div>
</div>
<a href="#" id="myElement" tooltip="... tooltip ... text ...">mouse over this</a>

<script language="javascript">
new ToolTip('myElement', {show:'mylayer', showWrite:'mytextLayer', where:'mouse', textAttr: 'tooltip', delay:0.5});
</script>