Solved

Converting TEXT to an Image in HTML

Posted on 2014-12-12
1
80 Views
Last Modified: 2014-12-12
Without using javascript, how can I convert  a Text string to an image by mouse hovering?
In other words, I place mouse over the Text and instantly the image appears. And when I move the mouse off the image the text reappears.
0
Comment
Question by:metro156
1 Comment
 
LVL 58

Accepted Solution

by:
Gary earned 500 total points
ID: 40496693
http://jsfiddle.net/8d6m0b1k/1/

<div>Some text
    <img src="http://www.freeimageswallpapershd.com/wp-content/uploads/2014/12/xmas-5.jpg">
</div>

Open in new window


div {
    position:relative
}
img {
    position:absolute;
    opacity:0;
    width:100px;
    height:100px;
    left:0;
    top:0
}
img:hover {
    opacity:1
}

Open in new window

0

Featured Post

Active Directory Webinar

We all know we need to protect and secure our privileges, but where to start? Join Experts Exchange and ManageEngine on Tuesday, April 11, 2017 10:00 AM PDT to learn how to track and secure privileged users in Active Directory.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
OWA - local directory not showing 5 38
Internal Website Security 5 62
Help on HTML 1 76
Reason for High TTFB 1 70
Foreword (July, 2015) Since I first wrote this article, years ago, a great many more people have begun using the internet.  They are coming online from every part of the globe, learning, reading, shopping and spending money at an ever-increasing ra…
Things That Drive Us Nuts Have you noticed the use of the reCaptcha feature at EE and other web sites?  It wants you to read and retype something that looks like this.Insanity!  It's not EE's fault - that's just the way reCaptcha works.  But it is …
Use Wufoo, an online form creation tool, to make powerful forms. Learn how to selectively show certain fields based on user input using rules to gather relevant information and data from your forms. The rules feature provides you with an opportunity…
Learn how to set-up PayPal payment integration in your Wufoo form. Allow your users to remit payment through PayPal upon completion of your online form. This is helpful for collecting membership payments, customer payments, donations, and more.

828 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