Posted By

krisdb on 03/09/07


Tagged

javascript


Versions (?)

Who likes this?

1 person have marked this snippet as a favorite

vali29


resize popup image dimensions


 / Published in: JavaScript
 

  1. <script type="text/JavaScript">
  2. function resizeImg(img) {
  3. var oImg = new Image();
  4. oImg.src = img;
  5.  
  6. if (oImg.complete) {
  7. window.resizeTo(oImg.width+50,oImg.height+90)
  8. }
  9. }
  10. </script>

Report this snippet  

You need to login to post a comment.