[Javascript] Changing picture src stretches/squeezes new picture

Peter Brunone peter at brunone.com
Wed Jul 10 22:54:03 CDT 2002


Tom,

	Is there any way to detect width and height, or will I have to hard-code
them for each image?

Peter

|-----Original Message-----
|From: javascript-admin at LaTech.edu [mailto:javascript-admin at LaTech.edu]On
|Behalf Of TomMallard
|Sent: Wednesday, July 10, 2002 10:13 PM
|To: javascript at LaTech.edu
|Subject: RE: [Javascript] Changing picture src stretches/squeezes new
|picture
|
|
|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
|
|_______________________________________________
|Javascript mailing list
|Javascript at LaTech.edu
|https://lists.LaTech.edu/mailman/listinfo/javascript
|




More information about the Javascript mailing list