SHARE
TWEET

Untitled

a guest Jul 30th, 2010 39 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. function imageResize() {
  2. $('img').load(function() {
  3.         $('.Message p img').each(function() {
  4.             var width = $(this).width();
  5.             var url = $(this).attr('src');
  6.             if (width >655) {
  7.                 $(this).attr('width','655');
  8.                 $(this).after('<br/><a href="'+url+'" target="_blank">Teljes méret</b>');
  9.             }
  10.         });    
  11. });
  12. }
  13.  
  14. imageResize();
  15.  
  16. $('ul.MessageList').ajaxComplete(function() {
  17.   imageResize();
  18. });
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top