javascript - Pulling data-caption from image with Elastic Image Slideshow, and display it on the page -


i using elastic image slideshow script, , add data-caption text each image, display text of shown image div, outside of slideshow (basically in different section of page.)

i found this script, work jquery cycle, , tried modify work not having luck.

ok, found fiddle: http://jsfiddle.net/snfst/6/ , modified down this:

   $('img').hover(function(){       $('#caption').html($(this).data('caption'))    }); 

question how load without having hover on image, , show data shown image?

the page i'm trying make work on might better show i'm trying do: http://diguiseppi.com/brad/andy/portfolio-web-design.html


Comments

Popular posts from this blog

Why does Ruby on Rails generate add a blank line to the end of a file? -

keyboard - Smiles and long press feature in Android -

node.js - Bad Request - node js ajax post -