Web Analytics Made Easy -
StatCounter <object> Problem with IE - CodingForum

Announcement

Collapse
No announcement yet.

<object> Problem with IE

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • <object> Problem with IE

    The following code works in Firefox AND validates as XHTML 1.0 Strict:

    <object codetype="application/java" classid="java:lake.class" width="423" height="567">
    <param name="image" value="lovetide.jpg" />
    </object>

    It displays the image, and the applet simulates ocean waves on the image.

    However, this code does NOT work in IE (no image displayed at all). Any idea how to do this in IE in a way that will still validate?

    I did some searches on the Web, and found an article that pointed out IE handles <object> differently from other browsers. Based on that article, I tried this:

    <!--[if IE]>
    <object classid="clsid:8AD9C840-044E-11D1-B3E9-00805F499D93" width="423" height="567">
    <param name="code" value="lake.class" />
    <param name="image" value="lovetide.jpg" />
    </object>
    <![endif]-->

    <!--[if !IE]> Not executed by IE-->
    <object type="application/x-java-applet" classid="java:lake.class" width="423" height="567">
    <param name="image" value="lovetide.jpg" />
    </object>
    <!--[endif]-->

    Still works with Firefox but not IE. Any help would be much appreciated. Thanks.

    Ken
Working...
X