[Javascript] Changing picture src stretches/squeezes new picture

TomMallard mallard at serv.net
Wed Jul 10 22:13:17 CDT 2002


Did you try changing the width and height attributes when you change the
src?

tom mallard
seattle

-----Original Message-----
From: javascript-admin at LaTech.edu [mailto:javascript-admin at LaTech.edu]On
Behalf Of Peter Brunone
Sent: Wednesday, July 10, 2002 8:11 PM
To: javascript at LaTech.edu
Subject: [Javascript] Changing picture src stretches/squeezes new
picture


Group,

	I have a single image in the center of the page, with a NAME attribute of
"mainPic".  Now I trigger various functions from different clickable links,
that will change the .src attribute of mainPic.  This works fine, but I've
noticed that in Netscape (version 4.x), the subsequent pictures either
expand or contract to the size of the original picture.  How can I prevent
this?

Cheers,

Peter

_______________________________________________
Javascript mailing list
Javascript at LaTech.edu
https://lists.LaTech.edu/mailman/listinfo/javascript




More information about the Javascript mailing list