Advertisement
Guest User

Untitled

a guest
Apr 16th, 2014
51
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.45 KB | None | 0 0
  1. var height = parseInt($(".divClass").css("height"));
  2. var width = parseInt($(".divClass").css("width"));
  3.  
  4. $(".divClass").css({"height":height + "px","width":width + "px"});
  5. $("#" + id).css({"height":height * 1.1 + "px","width":width * 1.1 + "px"});
  6.  
  7. var height, width;
  8.  
  9. $('.divClass').click(function() {
  10. height = $(this).height();
  11. width = $(this).width();
  12.  
  13. $(this).css({ 'height': ( height * 1.1 ) + 'px', 'width': ( width * 1.1 ) + 'px' });
  14. });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement