Click to See Complete Forum and Search --> : OBJECT tag


nichalp
05-31-2004, 03:39 PM
I tried to encode a png file using the OBJECT tag instead of the IMG tag. However although it works fine in Mozilla and Opera, it doesn't show in Internet Explorer. Internet Explorer treats it as an ActiveX object (I enabled ActiveX but to no avail). Any solutions?

The Cheat
05-31-2004, 05:33 PM
use the img tag

Robert Wellock
06-03-2004, 01:22 PM
<object data="raven.png" type="image/png"
style="height: 150px; width: 150px;">
Alternate text.
</object>

nichalp
06-03-2004, 03:49 PM
Thanks everyone, I've got the answer. IE does not support the OBJECT tag for images, esp PNG.

Robert Wellock
06-04-2004, 07:58 AM
Yes, it does and you would notice that if you used my example.

nichalp
06-04-2004, 02:48 PM
Sorry, but IE doesn't support OBJECT for images like the example you've given. Mozilla and Opera work fine however.

Check out this site for details:
http://www.student.oulu.fi/%7esairwas/object-test/