Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function imageResize() {
- $('img').load(function() {
- $('.Message p img').each(function() {
- var width = $(this).width();
- var url = $(this).attr('src');
- if (width >655) {
- $(this).attr('width','655');
- $(this).after('<br/><a href="'+url+'" target="_blank">Teljes méret</b>');
- }
- });
- });
- }
- imageResize();
- $('ul.MessageList').ajaxComplete(function() {
- imageResize();
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement