I'm facing a major issue with the "fade script" I added to my portfolio. It's designed to fade between thumbnails using jQuery and CSS, but it relies on 2 img classes that I can't seem to link properly.
Basically, I want to link the image green.jpg to a specific URL (a youtube clip in a lightbox).
Does anyone have a solution for this problem?
Here is the snippet of HTML:
<div class="item">
<div id="cf">
<a href="http://www.youtube.com/watch?v=uhi5x7V3WXE" rel="vidbox" title="caption">
<img class="bottom" src="img/green.jpg" border="0" />
</a>
<img class="top" src="img/a_childish_letter.jpg" />
</div>
</div>
And here is the corresponding CSS:
#cf {
position:relative;
height:200px;
width:310px;
margin:0 auto;
}
#cf img {
position:absolute;
left:0;
-webkit-transition: opacity .7s ease-in-out;
-moz-transition: opacity .7s ease-in-out;
-o-transition: opacity .7s ease-in-out;
transition: opacity .7s ease-in-out;
cursor:pointer;
}
#cf img.top:hover {
opacity:0;
}
Your help would be greatly appreciated! Also, feel free to visit the page at for more context.
Best regards, Axel