Maybe use sometghing like this as a guide:
PHP Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title></title>
<script type="text/javascript">
<!--
//set up the tool tip for each div
var toolTips = new Array();
toolTips['div1'] = 'Tooltip for div 1';
toolTips['div2'] = 'Tooltip for div 2';
toolTips['div3'] = 'Tooltip for div 3';
function showTooltip(elem) {
document.getElementById("tooltip").innerHTML = toolTips[elem.id];
elem.onmouseout=function() {
document.getElementById("tooltip").innerHTML = '';
}
}
//-------------------------------------------------------
//-->
</script>
</head>
<body>
<div style="margin-bottom: 80px" id="div1" onmouseover="showTooltip(this);">
This is div 1
</div>
<div style="margin-bottom: 80px" id="div2" onmouseover="showTooltip(this);">
This is div 2
</div>
<div style="margin-bottom: 80px" id="div3" onmouseover="showTooltip(this);">
This is div 3
</div>
<div id="tooltip"></div>
</body>
</html>
Bookmarks