954,600 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

onmouseover the text , then display image

I don't know how to use the onmouseover event the text , then display the image.
For example, I have a CHECK


, then when I move the mouse over the text, the image will display.
Please help me!

thebluestar
Junior Poster in Training
55 posts since Apr 2009
Reputation Points: 10
Solved Threads: 0
 
Pawan Tolia
Newbie Poster
4 posts since Nov 2008
Reputation Points: 10
Solved Threads: 1
 

It really requires little work:

<script type="text/javascript">
function show(Id) {
document.getElementById(Id).style.display="inline";
}
</script>
<span onmouseover="show('myImage')">Hover here to see the image!!!</span>
<img src="someImage.jpg" id="myImage" border="0" style="display:none;" />


~G

Graphix
Posting Pro in Training
432 posts since Aug 2009
Reputation Points: 82
Solved Threads: 74
 

Hello,

I am looking for something similar, and this is a good starting point. My quesion is how can I integrate this into php? so if I have a list of users all listed as


$first_name, $last_name, $department and $email

How can I have the mouseover be activated if you mouseover $first_name using php?

Thanks,

Aaron

AMADH
Light Poster
27 posts since Oct 2010
Reputation Points: 10
Solved Threads: 0
 

This question has already been solved

Post: Markdown Syntax: Formatting Help
You