Switch branches/tags
Nothing to show
Find file
Fetching contributors…
Cannot retrieve contributors at this time
46 lines (37 sloc) 1.87 KB
Use jquery-flash like this;
<script type="text/javascript">
This particular example converts this;
<a id="flash" href="">Javascript disabled! Click here for video.</a>
to a youtube video object. jquery-flash will automagically inherit classes, ids, dimensions and href from the original container unless you specify them in the constructor like this;
<script type="text/javascript">
'version': '9.0.24',
'flashvars': {
Express Install is supported by adding an 'express' line to the constructor json object with the url of the express install swf. If the user's flash version is less than the number specified by 'version' express install will be place in place of the one provided in 'src'. If no flash is installed the original element will be left completely untouched, so it's easy to put in a "no flash" image and replace it with jquery-flash.
jquery-flash adds 3 extra functions now;
isie(); // returns boolean
hasflash(); // returns boolean
flashversion(); // returns array ["10","0","45"]
Everything else functions exactly the same way, it's just a little more flexible now. :)