On Dec 12, 2005, at 10:18 AM, morten fjellman wrote:

I have used the following code for a couple of years now, and have never had any problems with it.

<object
...
                <!--[if !IE]> <-->
                <object data="header.swf"
...
                </object>
                <!--> <![endif]-->
          </object>


I'm about to launch a site using a slightly enhanced form of this technique, based on Hixie's method:

<!--[if IE]>
<object width="89" height="13" type="application/x-shockwave-flash" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/ swflash.cab#version=7,0,0,0">
        <param name="movie" value="/swf/audio.swf" />
        <param name="flashvars" value="code=Van_Vorst_Park" />
<![endif]--><!--[if !IE]>-->
<object type="application/x-shockwave-flash" width="89" height="13" data="/swf/audio.swf?code=Van_Vorst_Park">
<!--<![endif]-->
<a href="/Film/Van_Vorst_Park/audioblog_1.mp3"><img src="/img/text/ buttons/audioblog.gif" width="89" height="13" alt="audioblog" /></a>
</object>

The enhancement is mostly some combined redundancies, and an alternate content viewable by IE. (Morten's version hides the inner object and therefore its alternate from IE.)

The only problems I've found with variants of Hixie's method do not apply to my site, but may apply to you. Safari apparently does not read the param values of an object tag. (Please let me know if I'm misinterpreting its symptoms.) This means that flashvars need to be passed in the url (bad for caching), and that things like bgcolor or wmode need to be set as attributes within the object tag. Such proprietary attributes, of course, invalidate the tag.

--

    Ben Curtis : webwright
    bivia : a personal web studio
    http://www.bivia.com
    v: (818) 507-6613




******************************************************
The discussion list for  http://webstandardsgroup.org/

See http://webstandardsgroup.org/mail/guidelines.cfm
for some hints on posting to the list & getting help
******************************************************

Reply via email to