Just to show you how you can make it. The functions of Photoshop are just unnecessary complicated. In the example below, I'm using the jQuery hover() method. There are of course other ways too, and the CSS should be performed better.
Code:
<html>
<head>
<script type="text/javascript" src="http://code.jquery.com/jquery-latest.js"></script>
</head>
<body>
<div id="tooltip" style="z-index:999;top:100px;left:100px;position:absolute;display:none; background-color:#85FF3C;padding:5px; ">This is a tool tip</div>
<img id="pict" src="address.gif" style="position:absolute;top:50px;left:50px"/>
<script type="text/javascript">
$('#pict').hover(function(){
$(this).attr('src','address-red.gif');
var posx = 0;
var posy = 0;
$(this).mousemove(function(event){
posx = event.pageX - parseFloat($(this).css('left'));
posy = event.pageY - parseFloat($(this).css('top'));
$("#tooltip").css('top',(posy+5)+"px");
$("#tooltip").css('left',(posx+$(this).width()+15)+"px");
});
$("#tooltip").fadeIn('fast');
},function(){
$(this).attr('src','address.gif');
$("#tooltip").fadeOut('fast');
});
</script>
</body>
</html>
Bookmarks