Zoom Code :
Copy code The Code is as follows:
<SCRIPT type = "text/JavaScript">
// Proportional scaling of the image
VaR flag = false;
Function drawimage (imgd, iwidth, iheight ){
// Parameter (image, allowed width, allowed height)
VaR image = new image ();
Image. src = imgd. SRC;
If (image. width> 0 & image. Height> 0 ){
Flag = true;
If (image. width/image. Height> = iwidth/iheight ){
If (image. width> iwidth ){
Imgd. width = iwidth;
Imgd. Height = (image. Height * iwidth)/image. width;
} Else {
Imgd. width = image. width;
Imgd. Height = image. height;
}
Imgd. Alt = image. Width + "×" + image. height;
}
Else {
If (image. Height> iheight ){
Imgd. Height = iheight;
Imgd. width = (image. Width * iheight)/image. height;
} Else {
Imgd. width = image. width;
Imgd. Height = image. height;
}
Imgd. Alt = image. Width + "×" + image. height;
}
}
}
</SCRIPT>
Page code:
Make a good speech!
Page code:
1.
Make a good speech!