diff --git a/responsiveslides.js b/responsiveslides.js index 91abca8..e3c8da5 100644 --- a/responsiveslides.js +++ b/responsiveslides.js @@ -32,6 +32,14 @@ if ($this.find($slide).length > 1) { $slide.each(function (i) { + // linked slide + var link = this.getAttribute('data-link'); + if (link) { + $(this).css({'cursor':'pointer'}).click(function(){ + location.href=link; + }); + }; + this.id = slideClassPrefix + i; });