jQuery Flash Plugin - Basic Example

« Back to the jQuery flash plugin

Say hello to the jQuery flash plugin :)

Javascript:

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

Before:

<div id="example">Say hello to the jQuery flash plugin :)</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" />
    <div class="alt">Say hello to the jQuery flash plugin :)</div>
</div>