yazdmich

Untitled

Jan 22nd, 2016
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. $(users).each(function(index) {
  2.         $(grid[index]).attr({
  3.             img: $(this).find('.user_image > img').prop('src'),
  4.             name: $(this).find('.name').prop('href').slice(32, -11)
  5.         });
  6.         $(grid[index]).html(function() {
  7.             var name = $(grid[index]).attr('name');
  8.             var img = $(grid[index]).attr('img');
  9.             return '<a href=/profile/' + name + '><img src=' + img + ' width="85" height="85"></a>';
  10.         });
  11.         $(grid[index]).mouseenter(function() {
  12.             $('#userbox > center > h1').html($(this).find('a').html() + '<br>' + $(this).attr('name') + '<br> <div id="matches"><br></div>');
  13.             insertMatches($(this).attr('name'), this);
  14.         });
  15.     });
Add Comment
Please, Sign In to add comment