Try this: $(".overlay-div").hover(function() { $(this).fadeTo("fast", 0); }, function() { $(this).fadeTo("fast", 0.6); });
On 2 Okt., 09:13, christianslater <[EMAIL PROTECTED]> wrote: > hi there, > I`m really new to Javascript and looking for a solution to highlight > images. So there are small thumbs on the page with an black overlay > with maybe 60% opacity. If You rollover the image the opacity fades to > 0... > > Can anyone help me? > > thanks in advance!