151
rated 0 times
[
155]
[
4]
/ answers: 1 / hits: 43492
/ 11 Years ago, thu, june 6, 2013, 12:00:00
I have a picturelink that fades opacity on hover. What I need is for text to be displayed over it. Here is an example of what I want:
http://kspla.tumblr.com/
My code below fades the opacity to 40% but I have no idea how to get text to be displayed over it.
<script type="text/javascript">
$(document).ready(function() {
$('#wb_Image2, #wb_Image3 a img').animate({
opacity:1
});
$('#wb_Image2, #wb_Image3 a img').hover(function() {
$(this).stop().animate({opacity:.4},200);
}, function() {
$(this).stop().animate({opacity:1},500)
});
});
Thanks in advance.
More From » jquery