Home Articles FAQs XREF Games Software Instant Books About Feedback Search Site-Map
irt.org logo

Q1801 How can I resize an image

irt.org | Knowledge Base | JavaScript | Image | Q1801 [ previous next ]

Q1801 How can I resize an image

IE only (and perhaps NS6):

<a href="#" onClick="
this.zoomed = !this.zoomed;
if (document.images) {
  with (document.images['imageName']) {
    if (this.zoomed) {
      sw = width;
      sh = height;      
      width=300;
      height=400;
    } else {
      width=sw;
      height=sh;
    }
  }
}   
return false;
"><img name="imageName" src="img1.gif" width="100" height="200" alt="click to toggle zoom"<>/a<

Feedback on 'Q1801 How can I resize an image'


Provide feedback ...
AddThis Social Bookmark Button

Provide feedback ... AddThis Social Bookmark Button


Last Updated: 30th March 2008. Maintained by: Martin Webb and Michel Plungjan
irt.org liability, trademark, document use, privacy statement and software licensing rules apply.
Copyright © 1996-2008 irt.org, All Rights Reserved.