View Single Post
Old 09-28-2012, 12:04 AM   PM User | #2
fireplace_tea
New Coder

 
Join Date: Sep 2012
Location: Boulder, CO
Posts: 56
Thanks: 5
Thanked 0 Times in 0 Posts
fireplace_tea is an unknown quantity at this point
I like to use JavaScript to tell the browser that when I mouse over the photo I would like to unhide the text. Here is what I would code:

HTML:
<div id="footer-left">
<a href="#"><img src="images/arrow.png" id="myimage" /></a>
</div>
<p id="showme">Top</p>

JAVASCRIPT:
var image = document.getElementById('myimage');
var show = document.getElementById('showme');
image.onmouseover = function(){
show.style.display = "block";
};
image.onmouseout = function(){
show.style.display = "none";
};

Last edited by fireplace_tea; 09-28-2012 at 12:19 AM..
fireplace_tea is offline   Reply With Quote