Flash Tutorials - Herong's Tutorial Examples - v3.03, by Dr. Herong Yang
Outdated: Displaying Images as "object" Elements on IE 8
This section provides a tutorial example on how IE renders images specified in 'object' elements. Result is very poor comparing with Firefox 3.
To see how IE (Internet Explorer) handles the <object> elements with image files as data values, I opened object_gif.html created in the previous section with IE 8 and got a warning message first, "To help protect your security, Internet Explorer has restricted this webpage from running scripts or ActiveX controls that could access your computer. Click here for options..." in the information bar.
I clicked the warning message and selected the "Allow Blocked Content..." option. The "Security Warning" dialog box showed up saying: "Allowing active content such as script and ActiveX controls can be useful. However, active content might also harm your computer. - Are you sure you want to let this file run active content?"
I clicked the "Yes" button. Another Internet Explorer warning dialog box showed up saying: "An ActiveX control on this page might be unsafe to interact with other parts of the page. Do you want to allow this interaction?"
I clicked the "Yes" button again. "Windows Media Player" got executed with the Yahoo! image displayed.
I closed "Windows Media Player". IE displayed the final result of object_gif.html as:
What I learned from the result:
However, when I uploaded object_gif.html to my Apache Web server and open it remotely, IE 8 was giving me a new error message: "Internet Explorer has blocked this site from using an ActiveX control in an unsafe manner. As a result, this page might not display correctly."
So what is the difference between opening object_gif.html as a local file and as a remote Web page? Why IE behaves differently? I have no idea.
Comparing with Firefox 3, IE 8 behaves poorly on rendering images provided in "object" elements.
Table of Contents