bbdev

Buddyboss theme- slider - links whole slides / buttons

Jun 24th, 2016
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
jQuery 0.40 KB | None | 0 0
  1. jQuery(window).load(function(){
  2.     $slider = jQuery('#fwslider');
  3.     if( $slider.length == 0 )
  4.         return;
  5.    
  6.     $slider.find('.slide').each(function(){
  7.         var url = $(this).find('.readmore > a').attr('href');
  8.         if( url ){
  9.             $(this).css({ 'cursor' : 'pointer' }).click(function(){
  10.                 window.location.href = url;
  11.             });
  12.         }
  13.     });
  14. });
Add Comment
Please, Sign In to add comment