[Javascript] Swapping an Image

Andrew Dunn adunn at mail.interworx.com.au
Thu Jul 19 23:13:44 CDT 2001


why not add both?

<img name="something" id="something">

-----Original Message-----
From: javascript-admin at LaTech.edu [mailto:javascript-admin at LaTech.edu]On
Behalf Of Steve White
Sent: Friday, 20 July 2001 1:53 PM
To: javascript at LaTech.edu
Subject: RE: [Javascript] Swapping an Image


That's right, I used to assign names to my images. What is the story on
names and id's? Are they both officially supported as standard HTML? Is it
likely to cause any problems to replace <image id="something" with <image
name="something"? Can names be freely interchanged with id's anyplace?

Thanks

Steve

-----Original Message-----
From: javascript-admin at LaTech.edu [mailto:javascript-admin at LaTech.edu]On
Behalf Of Peter-Paul Koch
Sent: Thursday, July 19, 2001 7:48 PM
To: javascript at LaTech.edu
Subject: RE: [Javascript] Swapping an Image





>I used to be able to swap an image in NN4.x but after some changes to add
>support for NN6 it no longer works and I am not sure why.
>
>The original image is declared:
>
><img id="GGeo4" Align=Top SRC="bird-1.gif" border=0 width="161px"
>height="121px">

You use ID to give the image a name, NN4 doesn't recognize this. Use NAME
instead. I think it's also supported in the other browsers.

ppk

_________________________________________________________________
Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp

_______________________________________________
Javascript mailing list
Javascript at LaTech.edu
http://www.LaTech.edu/mailman/listinfo/javascript

_______________________________________________
Javascript mailing list
Javascript at LaTech.edu
http://www.LaTech.edu/mailman/listinfo/javascript




More information about the Javascript mailing list