Remote

Untitled

Feb 1st, 2014
153
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.                                 jQuery(document).ready(function($) {
  2.                                     $('#wrap').each(function() {
  3.                                         var imageUrl = $('#hide-slide').find(">:first-child").attr('src');
  4.                                         $(this).css('background-image', 'url(' +imageUrl+ ')');
  5.                                     });
  6.                                     $(".home-box").click(function() {
  7.                                         $(this).animate({opacity:1},600);
  8.                                         var findImg = $(this).attr('data-target');
  9.                                         var changeImg = $('#hide-slide img[alt=' +findImg+ ']').attr('src');
  10.                                         $('.home-box').css('opacity','.5');
  11.                                         $('#wrap').css('background-image', 'url(' +changeImg+ ')');
  12.                                     });
  13.                                     $('.widgettitle a').each(function() {
  14.                                         var removeUrl = $(this).attr('href');
  15.                                         $(this).after('<img src="' +removeUrl+ '">');
  16.                                         $(this).attr('href','#');
  17.                                     });
  18.                                 });
Advertisement
Add Comment
Please, Sign In to add comment