saf ha scritto:
Hello
1) How do I display tooltip at a fix position.
2) I want to display a tooltip when mouseover occures on text & also
when it has focus.


Thanx in advance

try this (untested, but it would work):


<html>
<head>
<style type="text/css">
#tooltipbox {
 border:1px solid black;
 background-color:grey;
 color:red;
 position:absolute;
 top:1em;
 left:1em;
 width:10em;
 height:4em;
 display:none;
 z-index:10
}
</style>

<script type="text/javascript">
 $('.tooltip').hover(function() {
    $('#tooltipbox').html($(this).attr('title')).show('fast');
 },
 function() {
    $('#tooltipbox').hide();
 }
)
</script>
</head>
<body>
<div id="tooltipbox"></div>
<a href="#" class="tooltip" title="your message here">?</a>
</body>
</html>


--
gianiaz.net - web solutions
p.le bertacchi 66, 23100 sondrio (so) - italy
+39 347 7196482

Reply via email to