Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/lightyrs/flashmob
Various flash wmode fixes and hacks.
https://github.com/lightyrs/flashmob
Last synced: 13 days ago
JSON representation
Various flash wmode fixes and hacks.
- Host: GitHub
- URL: https://github.com/lightyrs/flashmob
- Owner: lightyrs
- Created: 2011-02-09T21:18:16.000Z (almost 14 years ago)
- Default Branch: master
- Last Pushed: 2011-05-26T21:56:56.000Z (over 13 years ago)
- Last Synced: 2024-08-04T06:03:40.019Z (3 months ago)
- Language: JavaScript
- Homepage: http://harrisnovick.com
- Size: 102 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.markdown
Awesome Lists containing this project
README
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:* [flash_heed.js](https://github.com/scribd/flash_heed)
* [Josh Fraser](http://www.onlineaspect.com/2009/08/13/javascript_to_fix_wmode_parameter)
* [Qindex](http://www.qindex.info/Q_get.php?g_clss=forum&g_prcss=thrd&g_tmplt=&g_brd=5&g_pg=1&g_thrd=98)
* [José Nobile](http://www.nobilesoft.com/Scripts/fix_wmode2transparent_swf.js)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;