Olá pessoal, tenho um site 100% em flash, e tentei fazer um ap div com um banner flutuante, porém o site em flash sempre fica na frente. Já botei os parametros transparente no objeto e no embed, já botei o z-index e nada.. se alguém puder me ajudar.. <link rel="shortcut icon" href="favicon.gif" >
<style type="text/css">
<!--
#apDiv1 {
position:absolute;
width:200px;
height:115px;
z-index:1;
left: 298px;
top: 128px;
}
-->
</style>
<script type="text/javascript">
<!--
function MM_showHideLayers() { //v9.0
var i,p,v,obj,args=MM_showHideLayers.arguments;
for (i=0; i<(args.length-2); i+=3)
with (document) if (getElementById && ((obj=getElementById(args[i]))!=null)) { v=args[i+2];
if (obj.style) { obj=obj.style; v=(v=='show')?'visible':(v=='hide')?'hidden':v; }
obj.visibility=v; }
}
//-->
</script>
</head>
<body bgcolor="#111111" style="padding:0px; margin:0px">
<div id="apDiv1"><img src="http://site.com.br/promo.png" border="0" usemap="#Map">
<map name="Map">
<area shape="rect" coords="347,0,432,47" href="#" onClick="MM_showHideLayers('apDiv1','','hide')">
</map>
</div>
<div id="main">
<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" width="100%" style="height:100%" align="middle">
<param name=”wmode” value=”transparent” />
<param name="movie" value="main.swf" />
<param name="quality" value="high" />
<param name="bgcolor" value="#111111" />
<embed src="main.swf" quality="high" wmode=”transparent” bgcolor="#111111" width="100%" style="height:100%" name="main" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />
</object>
</div>
<script>
resizeme= function () {
if (document.body.clientWidth<766) {
document.getElementById('main').style.width='766';
}
else {
document.getElementById('main').style.width='100%';
}
if (document.body.clientHeight<800) {
document.getElementById('main').style.height='800';
}
else {
document.getElementById('main').style.height='100%';
}
}
window.onresize =function() {
resizeme();
};
window.onload =function() {
resizeme();
};
</script>
</body>
</html>