?
Solved

mousover text to create an alt like image

Posted on 2005-03-12
6
Medium Priority
?
192 Views
Last Modified: 2008-03-10
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
0
Comment
Question by:paulp75
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 4
  • 2
6 Comments
 
LVL 32

Expert Comment

by:Batalf
ID: 13524471
You wan't the "alt" functionality for a link? Use the title attribute

<a href="whatever.html" title="MOuseover text">Link</a>
0
 
LVL 32

Expert Comment

by:Batalf
ID: 13524476
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">
0
 
LVL 6

Author Comment

by:paulp75
ID: 13524503
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
0
VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

 
LVL 32

Accepted Solution

by:
Batalf earned 2000 total points
ID: 13524526
Maybe this will help

<span onmouseover="document.getElementById('myDiv').style.display='inline'" onmouseout="document.getElementById('myDiv').style.display='none'">LInk</span><br>
<div id="myDiv" style="display:none;position:absolute"><img id="myImage" src="word_icon.gif"></div>
<span onmouseover="document.getElementById('myDiv2').style.display='inline'" onmouseout="document.getElementById('myDiv2').style.display='none'">LInk</span><br>
<div id="myDiv2" style="display:none;position:absolute"><img id="myImage" src="word_icon.gif"></div>
0
 
LVL 6

Author Comment

by:paulp75
ID: 13524533
brilliant.
thanks very much.
0
 
LVL 32

Expert Comment

by:Batalf
ID: 13524560
Glad I could help!

Thanks for the "A"

Batalf
0

Featured Post

On Demand Webinar: Networking for the Cloud Era

Did you know SD-WANs can improve network connectivity? Check out this webinar to learn how an SD-WAN simplified, one-click tool can help you migrate and manage data in the cloud.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article will give core knowledge of JavaScript and will head in to your first JavaScript program. I am Durvesh Naik and I am here to deal with this series of JavaScript. I will teach you JavaScript in part wise , as its quite boring to read big…
Today, the web development industry is booming, and many people consider it to be their vocation. The question you may be asking yourself is – how do I become a web developer?
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…
Suggested Courses

762 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question