|
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'
|
|
Copyright © 1996-2008 irt.org, All Rights Reserved.