Possible Duplicate:
Get URL from background-image Property
I'm using the Cycle Plugin and i want to create a pager/thumbnail.
HTML
<div id="slide">
<div class="panel" id="product">
</div>
</div>
My Image is on the background of the div. Not inside the div itself
JS Call
pager:'#thumbs',
pagerAnchorBuilder: function(idx, slide) {
return '<li><a href="#"><img src="' + slide.src + '" width="50" height="50" /></a></li>';
},
return '<li><a href="#"><img src="' + slide.src + '" width="50" height="50" /></a></li>';
I'm trying to grab the background image on product
. So instead of returning + slide.src +
what would i replace this with?
The above grabs the source of the image. How can i grab the background source on the div rather than the image source?
My image is on the div not inside a <img>
tag.
**Thanks. **