Hi.  I am working on a site now that uses jQuery to insert a Flash
movie within another tag (for sIFR effects).  This works brilliantly
in most browsers.  However, if I use IE6, the settings for a minimum
version of Flash is ignored.  If the browser has Flash 6, jQuery still
attempts to insert the EMBED tag, even if specify version 7.  I've
tried entering '7', '7.0.70' (detailed version number), and just 7 (no
quotation marks).  Nothing helps.

Sample jQuery code is below (adapted mainly from the jQuery.flash
site, which was very helpful).  Any thoughts?

-----------------------

$('#subBodyText h1').flash({
        src: 'headertext.swf',
        flashvars: {
                css: [
                        '* { color: #9a0410; }',
                        'a { color: #9a0410; text-decoration: none; }',
                        'a:hover { text-decoration: underline; }'
                ].join(' ')
        }
},
{ version: '7.0.70' },
{ update: false },
function(htmlOptions) {
        htmlOptions.flashvars.txt = this.innerHTML;
        this.innerHTML = '<div>'+this.innerHTML+'</div>';
        var $alt = $(this.firstChild);
        htmlOptions.height = $alt.height();
        htmlOptions.width = $alt.width();
        htmlOptions.wmode = "transparent";
        $alt.addClass('alt');
        $(this)
                .addClass('flash-replaced')
                .prepend($.fn.flash.transform(htmlOptions));
});

Reply via email to