jQuery Flash Plugin - FlashBlock

« Back to the jQuery flash plugin

Say hello to the FlashBlock extension in FireFox :-(

Javascript:

$(document).ready(function(){
    $('#example').flash(
        { src: 'example.swf',
          width: 720,
          height: 480 },
        { version: 8 }
    );
});

Before:

<div id="example">Say hello to the FlashBlock extension in FireFox :-(</div>

After:

<div id="example" class="flash-replaced">
    <embed width="360" height="215" type="application/x-shockwave-flash" src="example.swf" pluginspage="http://www.adobe.com/go/getflashplayer" />
    <span class="alt">Say hello to the FlashBlock extension in FireFox :-(</span>
</div>