Skip to content

Instantly share code, notes, and snippets.

@lukaszkorecki
Created October 12, 2009 16:15
Show Gist options
  • Save lukaszkorecki/208515 to your computer and use it in GitHub Desktop.
Save lukaszkorecki/208515 to your computer and use it in GitHub Desktop.
// IE Fix for Adobe's FAVideo Player
FAVideo.prototype.getElement = function(id) {
var elem;
if (navigator.appName.indexOf("Microsoft") != -1) {
window[id] = document.getElementById(id);
return window[id]
} else {
if (document[id]) {
elem = document[id];
} else {
elem = document.getElementById(id);
}
return elem;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment