5 replies [Last post]
dmbox
dmbox's picture
User offline. Last seen 3 weeks 5 days ago. Offline
newbie
Timezone: GMT-6
Joined: 2010-02-03
Posts: 3
Points: 6

I'm in the process of converting an old HTML site to XHTML, using CSS. I have a doc type, and the CSS has been validated....the HTML will be corrected shortly.

The layout uses flash elements for navigation, and they work fine in FF, Safari, and Chrome....but do not show up in IE7.

http://twocleverchicks.com/index_new.html ....click logo, or enter button for home page.

[========== code ==========

-->

Content on this page requires a newer version of Adobe Flash Player.

Get Adobe Flash player

-->

========== end code ==========]

I'd appreciate any help,
dmb

dmbox
dmbox's picture
User offline. Last seen 3 weeks 5 days ago. Offline
newbie
Timezone: GMT-6
Joined: 2010-02-03
Posts: 3
Points: 6

SWF not showing in IE (code added correctly)

<object id="FlashID" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="110" height="400">
          <param name="movie" value="images/buttons2.swf" />
          <param name="quality" value="high" />
          <param name="wmode" value="opaque" />
          <param name="swfversion" value="8.0.35.0" />
          <!-- This param tag prompts users with Flash Player 6.0 r65 and higher to download the latest version of Flash Player. Delete it if you don’t want users to see the prompt. -->
 
          <param name="expressinstall" value="Scripts/expressInstall.swf" />
          <!-- Next object tag is for non-IE browsers. So hide it from IE using IECC. -->
          <!--[if !IE]>-->
          <object type="application/x-shockwave-flash" data="images/buttons2.swf" width="110" height="400">
            <!--<![endif]-->
            <param name="quality" value="high" />
            <param name="wmode" value="opaque" />
            <param name="swfversion" value="8.0.35.0" />
            <param name="expressinstall" value="Scripts/expressInstall.swf" />
 
            <!-- The browser displays the following alternative content for users with Flash Player 6.0 and older. -->
            <div>
              <h4>Content on this page requires a newer version of Adobe Flash Player.</h4>
              <p><a href="http://www.adobe.com/go/getflashplayer"><img src="http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif" alt="Get Adobe Flash player" width="112" height="33" /></a></p>
            </div>
            <!--[if !IE]>-->
          </object>
          <!--<![endif]-->
 
        </object>

Tony
Tony's picture
User is online Online
rank Moderator
Moderator
Timezone: GMT+10
Joined: 2003-03-12
Posts: 3024
Points: 278

Hi dmbox, I think for IE you

Hi dmbox,
I think for IE you need to use the embed tag.
Usually most people use JavaScript to call the flash such as swfobject

Your question may have already been answered, search and read before you ask.

gary.turner
gary.turner's picture
User offline. Last seen 1 hour 5 min ago. Offline
rank Moderator
Moderator
Timezone: GMT-6
Joined: 2004-06-25
Posts: 6579
Points: 253

<object id="FlashID"

<object id="FlashID" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"  
        width="110" 
        height="400">
  <param name="movie" value="images/buttons2.swf" />
  <param name="quality" value="high" />
  <param name="wmode" value="opaque" />
  <param name="swfversion" value="8.0.35.0" />
  <param name="expressinstall" value="Scripts/expressInstall.swf" />
 
  <!--[if !IE]>-->
  <object type="application/x-shockwave-flash" 
          data="images/buttons2.swf" 
          width="110" height="400">
    <param name="quality" value="high" />
    <param name="wmode" value="opaque" />
    <param name="swfversion" value="8.0.35.0" />
    <param name="expressinstall" value="Scripts/expressInstall.swf" />
 
    <div>
      <h4>Content on this page requires a newer version of Adobe Flash 
      Player.</h4>
 
      <p><a href="http://www.adobe.com/go/getflashplayer"><img 
            src="http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif" 
            alt="Get Adobe Flash player" 
            width="112" 
            height="33" /></a></p>
    </div>
  </object>
  <!--<![endif]-->
</object>
IE does not properly support alternative content for object, and will try to render the alternate content, which it doesn't understand. Put the conditional comment tags around the entire second object.

As a proof that all is ok, Try without any alternate content to be sure you have IE performing. Then add the alternate content within a !ie conditional comment block.

cheers,

gary

Unplanned code results in a tangled wad of brain cramping confusion.

There are enough html & css demos and tutorials to be interesting. Please visit.

dmbox
dmbox's picture
User offline. Last seen 3 weeks 5 days ago. Offline
newbie
Timezone: GMT-6
Joined: 2010-02-03
Posts: 3
Points: 6

SWF not showing in IE (reply)

Thanks Gary....the first reply to my post was from Tony, who suggested I use the embed tag...but I do not want to use deprecated code.

Your comment is appreciated but just a bit over my head....not sure what a 'conditional comment tag' is but I see them throughout the code that my Dreamweaver CS4 produces when I insert the SWF. I am a graphics guy who has to do some code work too, so please excuse my reliance on DW.

I really think my problem here may be that instead of starting a new XHTML document with proper CSS, I tried to 'fix up' and old page using my new found code skills (haha).

Gonna start from scratch and see if it all falls in to place.

Thanks again for contributing to CSS Creator.
Doug

gary.turner
gary.turner's picture
User offline. Last seen 1 hour 5 min ago. Offline
rank Moderator
Moderator
Timezone: GMT-6
Joined: 2004-06-25
Posts: 6579
Points: 253

Try the code

The markup I posted is an edited version of yours, and uses the suggestions I gave you. Try replacing yours with mine.

cheers,

gary

Unplanned code results in a tangled wad of brain cramping confusion.

There are enough html & css demos and tutorials to be interesting. Please visit.