Skip to content

Instantly share code, notes, and snippets.

@kled
Created March 7, 2012 16:00
Show Gist options
  • Save kled/1993966 to your computer and use it in GitHub Desktop.
Save kled/1993966 to your computer and use it in GitHub Desktop.
JavaScript:SWFObject-Embed facebook Application
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:fb="http://www.facebook.com/2008/fbml">
<head>
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/swfobject/2.2/swfobject.js"></script>
<script type="text/javascript" src="http://connect.facebook.net/en_US/all.js"></script>
<style type="text/css">
#flashContent{
width:1024px;
height:700px;
margin: 0 auto;
}
body{
background:#000;
text-align:center;
}
</style>
</head>
<body>
<div id="fb-root"></div>
<div id="flashContent">
<h1>You need at least Flash Player 10.0 to view this page.</h1>
<p><a href="http://www.adobe.com/go/getflashplayer"><img src="http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif" alt="Get Adobe Flash player" /></a></p>
</div>
<script type="text/javascript">
var flashvars = {};
var params = {wmode : "transparent"};
var attributes = {name:"flashContent"};
//Dynamic publishing with swfObject requires a name attribute passed in to support Chrome/Mozilla browsers
swfobject.embedSWF("SWF_FILE", "flashContent", "1024", "700", "10.0", null, flashvars,prams,attributes);
</script>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment