problem with a caption script
Hello,
I'm a new JQuery user and I've got a problem with a little caption script I use for the web site of my parents in-law
: djpgirardin.com
At the third image of the carroussel, the css bottom property isn't high enough but is the same of all the other ones. I don't understand why my script don't process each div...
my script :
- $(document).ready(function() {
- $(".information").each(function(){
- $(this).css("bottom", $(this).innerHeight() + "px");
- });
- $("#cycle").hover(function(){
- $(this).find(".information").toggleClass("visible");
- });
- });
and the html for example :
- <li>
- <img src="img/vernis_tampon_03.jpg" alt="vernis_tampon_03" />
- <div class="information">
- <h2>vernis au tampon</h2>
- <p>ces deux commodes Louis XVI ont été vernies au tampon avec la technique du XVIIIe</p>
- </div>
- </li>
Thank you in advance for your answers and excuse me for my poor english