locked
Using alternate content when flash is disabled. Strange box in explorer only. RRS feed

  • Question

  • Hello. I have added an alternate image in my flash object for viewers with flash disabled (ipad, iphone). When previewing in IE8 there is a strange box above the alternate image. The box does not appear in Firefox or Safari. I would like to make sure the box does not appear in IE. To view, please visit demo.rbscorp.com and disable flash player for IE. My object cose is below. Thank you.

     <object id="flash1" data="images/home.swf" height="340" type="application/x-shockwave-flash" width="980">
      <param name="movie" value="images/home.swf" />
      <param name="wmode" value="transparent">
      <embed wmode="transparent"></embed>
     <img alt="hello" src="images/img1.png"/>
     </object>

    Friday, November 12, 2010 2:39 PM

All replies

  • Please post a link to an example page of what is (not) happening ; it doesn't have to be the final site; just post a page to your ISP's diskspace that comes with your account or another temporary location.  From your description we cannot see the problem in action without a link.

    Please review the "Before Posting" article on how to ask questions and the infomration to provide.

    <object id="flash1" data="images/home.swf" height="340" type="application/x-shockwave-flash" width="980">
      <param name="movie" value="images/home.swf" />
      <param name="wmode" value="transparent">
      <embed wmode="transparent"></embed>
     <img alt="hello" src="images/img1.png"/>
     </object>

    I can sort-of see what you're getting at; but without being able to run the actual flash file from your live site, it is difficult.

    This is a guess, but try removing the <embed> line; I don't know what its doing there, but the <embed> tag is from Netscape days and was an alternative to the modern method using <Object>, so in this case I don't think it's of any particular use and it is not strictly compliant by today's standards.

    I just copied your code into a page, and I get TWO objects - one being the <object> and one being the <embed>.

     


    Andrew M


    http://www.murraywebs.com

    "Nothing spoils numbers faster than arithmetic!"
    -- Peppermint Patty (Peanuts, Charles M. Schulz)
    • Edited by AndrewOZ1 Friday, November 12, 2010 10:25 PM More information
    Friday, November 12, 2010 10:15 PM
  • There is a link in the OP's post.  Sadly, it's not actually linked.  We often miss them in that case.
    Friday, November 12, 2010 10:43 PM