Quantcast
Channel: NBStore Discussions Rss Feed
Viewing all articles
Browse latest Browse all 4081

New Post: Help with images and Jquery?

$
0
0

Ok got it working, for those that want to do a similar thing this is the secret sauce

$(function() {
    $('#slideshow').cycle({
        timeout: 0,
    pagerEvent: 'mouseover',
        pager:  '#nav',
        pagerAnchorBuilder: function(idx, slide) {
            return '<li><a href="#"><img style="position:absolute;left:-150%;top:-150%;"" src="' + jQuery(slide).find('img').attr('src') + '" height="150px" width="150px" /></a></li>';
        }
    });
});

NOTE this code change
src="' + jQuery(slide).find('img').attr('src') + '"

Once thats done it will look like this :)

Image


Viewing all articles
Browse latest Browse all 4081

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>