开发者

Rrotating image slider + linked images

I am using this rotating image gallery but not able to link the images.

http://tympanus.net/codrops/2011/04/28/rotating-image-slider/

As soon as I turn images to links, the slider stop working.

Any ide开发者_如何学Goas how to fix this?


Don't modify the html rather add a jQuery click event to the li with a data-href attribute. I've always found it safer to do this because of problems like this

$('#rm_container li').click(function(){
    window.location.href = $(this).attr('data-href');
});

<li data-rotation="-5" data-images="rm_container_2" data-href='http://stackoverflow.com' data-transform="rotate(-5deg)" style="-moz-transform: rotate(-5deg);">
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜