1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41
|
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/swfobject/2.2/swfobject.js" ></script>
<script type="text/javascript" src="jsflash/jquery-1.11.0.min.js"></script>
<script type="text/javascript">
// ICI NOTRE CODE JAVASCRIPT POUR INSTALLATION FLASH
var flashvars = {};
var params = {};
params.scale = "noScale";
params.wmode = "transparent";
var attributes = {};
attributes.id = "flashContent";
attributes.name = "flashContent";
swfobject.embedSWF("Ide_services.swf", "flashContent", "100%", "100%", "10.0.0", "swfobject/expressInstall.swf", flashvars, params, attributes);
function bodyResizeHandler() {
// on fait le resize
var newW = $(document).width();
var newH = $(document).height();
console.log(newW + ":" + newH);
document.getElementById('flashContent').style.width = newW+'px';
document.getElementById('flashContent').style.height = newH+'px';
}
$(window).resize(function() {
bodyResizeHandler();
});
</script>
</head>
<body onload="javascript:bodyResizeHandler()">
<div id="flashContent">
<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>
</div>
</body> |
Partager