Link to home
Start Free TrialLog in
Avatar of paulp75
paulp75Flag for Australia

asked on

mousover text to create an alt like image

what i'd like to have is when i mouse over a text link, then it will show an image in a similar way to what an alt take does with an image.
basically reverse the roles.
mouse over text, image pops up where mouse is. mouse out, image disappears.

can someone help me with this.

thanks
Avatar of Batalf
Batalf
Flag of United States of America image

You wan't the "alt" functionality for a link? Use the title attribute

<a href="whatever.html" title="MOuseover text">Link</a>
Sorry, misread. Maybe it's something like this you're looking for.

<a href="#" onclick="return false" onmouseover="document.getElementById('yourImage').style.display='inline'"  onmouseout="document.getElementById('yourImage').style.display='none">LInk</a><br>
<img id="yourImage" src="image.gif" style="display:none">
Avatar of paulp75

ASKER

its very close.
but i'd like it to be able to not have an effect on the text.
so that i would be able to have many listings.
and when i mouse over the listing it will just pop out the image like an "alt" tag does on a image.
also the mouse out wasnt working
ASKER CERTIFIED SOLUTION
Avatar of Batalf
Batalf
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of paulp75

ASKER

brilliant.
thanks very much.
Glad I could help!

Thanks for the "A"

Batalf