View Full Version : Featured Content Slider - dynamic captions for pagination links onmouseover?

11-18-2009, 08:38 PM
1) Script Title: Featured Content Slider 2.4

2) Script URL (on DD): http://www.dynamicdrive.com/dynamicindex17/featuredcontentslider.htm

3) Describe problem:

I am using the #increment pagination method - embedded in img src - to make thumbnail slider links. What I would like to have happen is, when hovering over the thumbnails, a dynamic caption should appear to the side of the pagination div. Each slide contains an <h2> element, and I would like to use the text inside that element as the caption text for each thumbnail. (Of course I could code captions like this manually if I used markup pagination, but it's important that I make this automatic instead.)

Any suggestions on how to approach this? How do I grab the h2 text from the target slide? I thought maybe I could use "onmouseover" inside the thumbnail img to plop the text in a span tag, but I don't know if it's possible without additional script in either my html or the contentslider.js.