Posted By

krisdb on 03/09/07


Tagged

ASP


Versions (?)

Who likes this?

1 person have marked this snippet as a favorite

asifrizvigmailcom


dynamic resize popup


 / Published in: ASP
 

  1. <%
  2. Dim fullImg: fullImg = request.querystring("file")
  3. %>
  4. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
  5.  
  6. <html>
  7. <head>
  8. <title>Adoption Network</title>
  9. <script type="text/JavaScript">
  10. function resizeImg(img) {
  11. var oImg = new Image();
  12. oImg.src = img;
  13.  
  14. if (oImg.complete) {
  15. window.resizeTo(oImg.width+8,oImg.height+51)
  16. }
  17. }
  18. </script>
  19. </head>
  20.  
  21. <body onLoad="resizeImg('<%=fullImg%>');" style="margin:0px;">
  22.  
  23. <img src="<%=fullImg%>" border="0" id="ShowImg" onClick="window.close();" style="cursor:pointer;" alt="close window" title="close window">
  24.  
  25. </body>
  26. </html>

Report this snippet  

You need to login to post a comment.