function
funHeightWidth() {
for
(
var
i=0, j=0; i<document.images.length; i++, j++) {
if
(document.images[i].height ==
'80'
&& document.images[j].width ==
) {
document.images[i].height =
'100'
;
document.images[j].width =
}
else
{
funMake() {
i=0; i<document.images.length; i++) {
document.getElementById(
'd1'
).innerHTML += document.images[i].name +
'<br />'
setInterval(
'funHeightWidth()'
, 1000);
<!DOCTYPE html>
<
html
>
head
meta
charset
=
"utf-8"
/>
title
>New Page</
script
src
"js/script.js"
></
</
body
img
"img/1.png"
name
"image1"
"img/2.png"
"image2"
"img/3.png"
"image3"
br
div
id
"d1"
funMake();