SHARE
TWEET

Untitled

a guest Sep 13th, 2017 59 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. $(document).ready(function() {
  2.  
  3.         $('.fbLikeImage').mouseover(function() {
  4.               $likeID = this.id;
  5.  
  6.               document.getElementById('uiFBULikeName').innerHTML = this.alt;
  7.               document.getElementById('uiFBLikeImage').innerHTML = "<img width='70' height='70' class='fbUserImage' src="+ this.src +" >";
  8.  
  9.                 });
  10.  
  11.         $('.fbLikeImage').click(function(){
  12.             showDiv('uiCommentTextInputWrapper');
  13.             showDiv('likeButtonWrapper');
  14.  
  15.             });
  16.  
  17.  
  18. });
  19.    
  20. <div class="table">
  21.     <div class="tableRow">
  22.         <div class="tableCell">
  23.           <img width="50" height="50" id="192563358702" class="fbLikeImage"               src="http://profile.ak.fbcdn.net/hprofile-ak-snc4/50352_192563358702_7313174_s.jpg" title="hi,     friend" alt="hi, friend">
  24.         </div>
  25.         <div class="tableCell">
  26.            <img width="50" height="50" id="126279274071407" class="fbLikeImage" src="http://profile.ak.fbcdn.net/hprofile-ak-snc4/195799_126279274071407_7781147_s.jpg"  title="Momentographics | Photography & Design" alt="Momentographics | Photography & Design">
  27.         </div>
  28.      </div>
  29. </div>
  30.    
  31. .table{
  32. display:table;
  33. }
  34.  
  35. .tableRow{
  36. display:table-row;
  37.  
  38. }
  39. .tableCell{
  40. display:table-cell;
  41. vertical-align:top;
  42.  
  43. }
  44.    
  45. $(function () {
  46.  
  47.         $('.fbLikeImage').mouseover(function() {
  48.               var likeID = $(this).id;
  49.  
  50.               $('#uiFBULikeName').html($(this).alt);
  51.               $('#uiFBLikeImage').html("<img width='70' height='70' class='fbUserImage' src=' + $(this).src + ' >")
  52.  
  53.          });
  54.  
  55.         $('.fbLikeImage').click(function(){
  56.             $('div uiCommentTextInputWrapper').show();
  57.             $('div likeButtonWrapper').show();
  58.  
  59.             });
  60. });
  61. I would suggest something like this, but I'm not sure if the click function works like this.. else try by passing the class or ID with it.
RAW Paste Data
Top