Why not use some jQuery magic and use the title "Attribute" instead of a Title "Tag"?
I think you're confusing the two in your original question
Check out this jsFiddle
http://jsfiddle.net/s5qUw/2/
I've also used the jQuery Tools Tooltip
Markup note: Basically all YOU need to do is add the title
attribute and the addtooltip
class to any page element that you want to add a tooltip to. Then you can use CSS to style the tooltip however you see fit.
<path
id="AK"
class="addtooltip"
style="fill:#f2d0ff"
onmousemove="GetTrueCoords(evt);"
title="this sis ak<br>with a line break">
</path>
CSS
.tooltip {
display:none;
background-color:black;
font-size:12px;
height:40px;
width:160px;
padding:25px;
color:#fff;
}
Script (bottom of your page)
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"> </script>
<script src="http://cdn.jquerytools.org/1.2.4/full/jquery.tools.min.js"></script>
<script type="text/javascript">
$(document).ready(function () {
$(".addtooltip").tooltip();
}); // closes document.ready
</script>