...

View Full Version : Mouse Over Image



Mill
04-30-2004, 11:04 PM
I was wondering does anyone know the code for when you put your mouse over a text link and an image appears above it?

sad69
05-01-2004, 12:40 AM
<style>
.vis {
display:block;
visibility:visible;
}

.invis {
display:none;
visibility:hidden;
}
</style>

<img src="your_img.jpg" id="img1" class="invis">
<a href="your_link" onmouseover="document.getElementById('img1').setAttribute('className', 'vis');" onmouseout="document.getElementById('img1').setAttribute('className', 'invis');">your_link</a>


I'm pretty sure that'll do the trick.. Let me know how that works out for you.

Sadiq.



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum