|
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..
|