Skip to content

Instantly share code, notes, and snippets.

@slaskis
Created April 8, 2009 17:59
Show Gist options
  • Save slaskis/91893 to your computer and use it in GitHub Desktop.
Save slaskis/91893 to your computer and use it in GitHub Desktop.
var flashvars = {
};
var params = {
menu: "false",
allowFullScreen:"true"
};
var attributes = {
id: "pulplabs",
name: "pulplabs"
};
var version = "10.0.22";
function redirect() {
var path = window.location.href;
if( path.indexOf( "#" ) == -1 && path != window.location.hostname ) {
if( typeof( swfobject ) != "undefined" && swfobject.hasFlashPlayerVersion( version ) ) {
return;
}
var href = window.location.protocol + "//" + window.location.host + "/#" + window.location.pathname;
window.location.href = href;
}
}
redirect();
if( typeof( swfobject ) != "undefined" ) {
swfobject.embedSWF("pulplabs.swf", "content", "100%", "100%", version ,"expressInstall.swf", flashvars, params, attributes);
if( typeof( swfmacmousewheel ) != "undefined" ) {
swfmacmousewheel.registerObject(attributes.id);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment