Text in Graphics

G

Guest

How do I create mouseovers in a graphic that will display predefined text
messages. Not a hotspot. I do not want to redirect.
 
H

Hrishi

Text in graphics - issue
============================
Try this code-

<html>
<head>
<script type="text/javascript">
function getTip(txt)
{
descDiv.innerHTML=txt
}
function resetTip()
{
descDiv.innerHTML="Refer here for navigation descriptions";
}
</script>
</head>
<body>
<div id="descDiv" style="position: absolute; float: left;">Refer here for
navigation descriptions</div>
<div style="position: absolute; left: 700px;">
<img src="home.gif" onmouseover="getTip('This is our home page.<br>Check
back here for the latest updates and news!')" onmouseout="resetTip()">
<p>
<img src="contact.gif" onmouseover="getTip('Here is where you can find all
of the information on contacting us and our business.<br>This page also
includes business hours and other miscellaneous information.')"
onmouseout="resetTip()">
</div>
</body>
</html>

Hope this helps
regards
Hrishi
MSFT

This posting is provided "as is" with no warranties and confers no rights
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top