<div id="flashContent"> | |
<script type="text/javascript"> | |
var pageHost = ((document.location.protocol == "https:") ? "https://" : "http://"); | |
document.write("<a href='http://www.adobe.com/go/getflashplayer' target='_top' ><img src='" | |
+ pageHost + "www.adobe.com/images/shared/download_buttons/get_flash_player.gif' alt='Get Adobe Flash player' /></a>" ); | |
</script> | |
</div> | |
<!-- | |
SWFObject v2.2 <http://code.google.com/p/swfobject/> | |
is released under the MIT License <http://www.opensource.org/licenses/mit-license.php> | |
--> | |
<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/swfobject/2.2/swfobject.js"></script> | |
<script type="text/javascript"> | |
/* use strict */ | |
var _widget; | |
function displayType() { | |
if ((window.top != window.self) && window.parent) | |
return window.name; | |
return ""; | |
} | |
function init() { | |
var prefix, theElement, theHeight, theWidth; | |
if (displayType() != "") { | |
if (typeof window.innerWidth === 'number') { | |
theHeight = window.innerHeight; | |
theWidth = window.innerWidth; | |
} else { | |
theElement = window.document.documentElement; | |
theHeight = theElement.clientHeight; | |
theWidth = theElement.clientWidth; | |
} | |
_widget.style.height = (theHeight - 2) + "px"; | |
_widget.style.width = (theWidth - 2) + "px"; | |
_widget.style.border = "1px solid #172647"; | |
} | |
} | |
function start() { | |
var swfVersionStr, params, attributes; | |
swfVersionStr = "11.1.0"; | |
flashVars = { serviceURL: "http://flex.apache.org/" }; | |
params = { quality: "high", bgcolor: "#ffffff", allowscriptaccess: "sameDomain", | |
allowfullscreen: "true" }; | |
attributes = { id: "InstallApacheFlexBadge", name: "InstallApacheFlexBadge" }; | |
swfobject.embedSWF("InstallApacheFlexBadge.swf", "flashContent", "10", "10", | |
swfVersionStr, "", flashVars, params, attributes); | |
swfobject.createCSS("#flashContent", "display: block;"); | |
waitForWidget(); | |
} | |
function waitForWidget() { | |
_widget = document.getElementById("InstallApacheFlexBadge"); | |
if (!_widget) | |
setTimeout(function () { waitForWidget(); }, 1000); | |
else | |
init(); | |
} | |
start(); | |
</script> |