Skip to content

Instantly share code, notes, and snippets.

@itoz itoz/gist:943928
Created Apr 27, 2011

Embed
What would you like to do?
URLからflashversをswfに渡す
var flashvars={};
if( location.search != "" ){
var str = location.search.substring( 1 );
var params = str.split( "&" );
for( var i = 0; i < params.length; i++ )
{
var values = params[ i ].split( "=" );
flashvars[ values[ 0 ] ] = values[ 1 ];
}
}
var params = {};
var attributes = {};
swfobject.embedSWF("index.swf", "content", "100%", "650", "10.0.0","", flashvars, params, attributes);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.