Display the title of the current child element JQuery Cycle Plugin Malsup

Display the title of the current child element JQuery Cycle Plugin Malsup

Hi,

I m pretty new with JQuery and I m using the plugin JQuery Cycle from malsup to create an images slideshow.

It works very well. If I look the source code, I can see that all the images are (dynamically) listed, but just one is displayed on the website.
My goal is to display the name of the current image on my webpage. My problem is that all the name of the images are currently displayed. The question is what can I use (function, etc.) to point out the title of the current image only? Which means that if I clic on "next image", the title of the following image will appear...



  1. <div id="title">title of the image here</div>

  2. <div id="slides" class="pics" style="cursor:pointer;">
  3.    <img src='image001.jpg' width='940' height='627' style='height:627px;width:940px;' alt=' ' />
  4.   <img src='image002.jpg' width='940' height='652' style='height:652px;width:940px;' alt=' ' />
  5.   <img src='image003.jpg' width='940' height='641' style='height:641px;width:940px;' alt=' ' />
  6. </div>

thanks