Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Various flash wmode fixes and hacks.
JavaScript
Branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
fix_flash
README.markdown
fix_youtube_iframes.js

README.markdown

flashmob

flashmob is a collection of 'flash-fixing' javascript files that can be used in various situations to force a given wmode on arbitrary flash files that you may or may not control. It's intent is to prevent flash from appearing above elements with higher priority.

Inspiration

This collection is inspired by the work of many others before me, namely:

Usage

These scripts require jQuery.

fix_youtube_iframes.js should be called within a window.onload statement.

The scripts in fix_flash/ should all be included on the affected page and called like so:

function fix_flash() {
  if($.browser.msie && (parseFloat($.browser.version.substr(0,1)) < 8)){
    $.getScript('fix_flash_ie67.js', function(){
        window.fix_wmode2transparent_swf();
    });
  } else if($.browser.msie && (parseFloat($.browser.version.substr(0,1)) == 8)){
    $.getScript('fix_flash_ie8.js', function(){
        window.fix_wmode2transparent_swf();
    });
  } else {
    $.getScript('fix_flash.js', function(){
        window.fix_wmode2transparent_swf();
    });
  }
}
window.onload = fix_flash;
Something went wrong with that request. Please try again.