Deform a picture into different lengths and widths

Time:2022-5-24

Step 1: add the following code to the < body > area
<img src=” https://imgs.developpaper.com/imgs/helpor.gif “Name =” U “border =” 0 “ALT =” fun “>
<script language=”JavaScript”>

var b = 1;
var c = true;

function fade(){
if(document.all);

if(c == true) {
b++;
}
if(b==100) {
b–;
c = false
}

if(b==10) {
b++;
c = true;
}

if(c == false) {
b–;
}
u.width=150 + b;
u.height=125 – b;
setTimeout(“fade()”,50);
}
</script>

Step 2: change the < body > area to
<body bgcolor=”#fef4d9″ onLoad=”fade()”>