Hey guys,
I have this little problem~ I'm trying to make an image fade away to show the text. I tried using jQuery http://jsfiddle.net/purmou/e2E5z/
I places all the codes
HTML
CSS
JAVA
But still, I do not get the effect that I need to get on my forum ( http://testeris.4umer.com/forum it's only a simple image on the right side ;( )
Maybe I'm doing something wrong or maybe it's not possible to use this ? (I'm a newbie at these things ;( )
I have this little problem~ I'm trying to make an image fade away to show the text. I tried using jQuery http://jsfiddle.net/purmou/e2E5z/
I places all the codes
HTML
- Code:
<div class="container">
<img src="http://i42.tinypic.com/6ie000.jpg" />
<div class="overlay"><a href="#">HY</a><br><a href="#">HY</a><br><a href="#">HY</a><br></div>
</div>
CSS
- Code:
.overlay {
position:absolute;
margin-top:-205px;
width:200px;
height:200px;
background-color:black;
opacity:0;
}
JAVA
- Code:
$(".overlay").hover(function(){
$(this).stop().fadeTo(300,0.8);
},function(){
$(this).stop().fadeTo(300,0);
});
But still, I do not get the effect that I need to get on my forum ( http://testeris.4umer.com/forum it's only a simple image on the right side ;( )
Maybe I'm doing something wrong or maybe it's not possible to use this ? (I'm a newbie at these things ;( )
Last edited by Monikita on May 6th 2013, 2:41 pm; edited 2 times in total