Click to See Complete Forum and Search --> : Image using object Tag
said_fox
03-05-2005, 12:12 PM
Hello,
An image named mypic.jpg, may be inserted into an HTML page using <img> tag as follows,
<img src="mypic.jpg">
The question is,
How can I insert this image using object tag <object> ?
Just curious... Why?
Edit: Probably should give you this link (http://www.w3.org/TR/html401/struct/objects.html#h-13.3) as well as posting code.
<OBJECT data="TheEarth.gif" type="image/gif">
The <STRONG>Earth</STRONG> as seen from space.
<!-- Text rendered when image unavailable, like "ALT"
to the IMG tag. -->
</OBJECT>
said_fox
03-05-2005, 05:04 PM
:)
Because <img> could not be a parentNode for any node, because it is not a container tag i.e there is no </img>.
I want to write script can determine the indices of an object, namely an image map's area, then places another little image over that area to produce flash like effect on a picture demonstrates a geographical map.
for more details check out this post
http://www.webdeveloper.com/forum/showthread.php?threadid=58489&goto=newpost
However, the insert of the image runs well on Mozilla, but Internet Explorer produce nothing or an message talks about activeX and security setings