Usamos cookies para medir audiência e melhorar sua experiência. Você pode aceitar ou recusar a qualquer momento. Veja sobre o iMasters.
eh o seguinte eu havia postado uma duvida semelhante, pois tenho um banner flutuante no bloge ele estava sobrepondo os arquivos swf... consegui resolver.. mas agora estou com outro problema... como que faço para esse banner ficar na frente de um iframe... o codigo eh este...
<div align="left">
<iframe src ="[http://dll10.com/wp-content/themes/tema/images/tedio/tedio.html"](http://dll10.com/wp-content/themes/tema/images/tedio/tedio.html) width="932" height="198" frameborder="0" scrolling="no" ></iframe>
</div>
Meu banner o código eh este..
<style type="text/css">
#topbar
{
style="z-index: -1"
PADDING-TOP: 5px;
PADDING-BOTTOM: 5px;
PADDING-RIGHT: 5px;
PADDING-LEFT: 5px;
VISIBILITY: hidden;
BORDER-TOP: black 1px solid;
BORDER-BOTTOM: black 1px solid;
BORDER-RIGHT: black 1px solid;
BORDER-LEFT: black 1px solid;
WIDTH: 350px;
color: black;
FONT-FAMILY: Tahoma;
POSITION: absolute;
BACKGROUND-COLOR: white
}
</style>
<script type="text/javascript">
var persistclose = 1
var startX = 10
var startY = 20
var verticalpos = "frombottom"
function iecompattest()
{
return (document.compatMode && document.compatMode!="BackCompat")? document.documentElement : document.body
}
function get_cookie(Name)
{
var search = Name + "="
var returnvalue = "";
if (document.cookie.length > 0)
{
offset = document.cookie.indexOf(search)
if (offset != -1)
{
offset += search.length
end = document.cookie.indexOf(";", offset);
if (end == -1) end = document.cookie.length;
returnvalue=unescape(document.cookie.substring(offset, end))
}
}
return returnvalue;
}
function closebar()
{
if (persistclose)
document.cookie="remainclosed=1"
document.getElementById("topbar").style.visibility="hidden"
}
function staticbar()
{
barheight=document.getElementById("topbar").offsetHeight
var ns = (navigator.appName.indexOf("Netscape") != -1) || window.opera;
var d = document;
function ml(id)
{
var el=d.getElementById(id);
if (!persistclose || persistclose && get_cookie("remainclosed")=="")
el.style.visibility="visible"
if(d.layers)el.style=el;
el.sP=function(x,y){this.style.right=x+"px";this.style.top=y+"px";};
el.x = startX;
if (verticalpos=="fromtop")
el.y = startY;
else
{
el.y = ns ? pageYOffset + innerHeight : iecompattest().scrollTop + iecompattest().clientHeight;
el.y -= startY;
}
return el;
}
window.stayTopLeft=function()
{
if (verticalpos=="fromtop")
{
var pY = ns ? pageYOffset : iecompattest().scrollTop;
ftlObj.y += (pY + startY - ftlObj.y)/8;
}
else
{
var pY = ns ? pageYOffset + innerHeight - barheight: iecompattest().scrollTop + iecompattest().clientHeight - barheight;
ftlObj.y += (pY - startY - ftlObj.y)/8;
}
ftlObj.sP(ftlObj.x, ftlObj.y);
setTimeout("stayTopLeft()", 10);
}
ftlObj = ml("topbar");
stayTopLeft();
}
if (window.addEventListener)
window.addEventListener("load", staticbar, false)
else if (window.attachEvent)
window.attachEvent("onload", staticbar)
else if (document.getElementById)
window.onload=staticbar
</script>
<div id="topbar">
<table width="100%" align="left" background="[http://dll10.com/wp-content/themes/tema/images/popup.jpg">](http://dll10.com/wp-content/themes/tema/images/popup.jpg)
<tr>
<td width="100%" align="center">
<a target="_blank" href="[http://feedburner.google.com/fb/a/mailverify?uri=Dll10&loc=pt_BR"](http://feedburner.google.com/fb/a/mailverify?uri=Dll10&loc=pt_BR) onclick="javascript:urchinTracker('/outbound/feedburner.google.com/fb/a/mailverify?uri=Facildebaixarcom');">
<img border="0" vspace="4" align="left" title="Clique aqui para assinar agora e receba em seu email aplicativos testados e livre de virus!" height="48" src="[http://dll10.com/wp-content/themes/tema/images/feed.png"](http://dll10.com/wp-content/themes/tema/images/feed.png) hspace="4" width="48"/></a>
<b>Fique Sempre Atualizado ! Cadastre-se: E Receba as Novidades do Site em seu e-mail.</b><form id="subscribe" action="[http://feedburner.google.com/fb/a/mailverify?uri=Dll10&loc=pt_BR"](http://feedburner.google.com/fb/a/mailverify?uri=Dll10&loc=pt_BR) target="popupwindow" method="post" onsubmit="window.open('http://feedburner.google.com/fb/a/mailverify?uri=Dll10&loc=pt_BR', 'popupwindow', 'scrollbars=yes,width=520,height=500');return true">
<input id="subbox" onfocus="if (this.value == 'Digite seu e-mail...') {this.value = '';}" value="Digite seu e-mail..." name="email" onblur="if (this.value == '') {this.value = 'Digite seu e-mail...';}" size="35" type="text" style="color: #000000; font-family: Tahoma; font-size: 9pt; border: 1px solid #000000; background-color: #FFFFFF"/><input value="dgemg" name="uri" type="hidden"/><input value="pt_BR" name="loc" type="hidden"/> <input id="subbutton" input class="button primary" value="Assinar" type="submit" style="color: #000000; font-family: Tahoma; font-size: 9pt; border: 1px solid #000000; background-color: #FFFFFF"/></form>
</td><td width="1%"><a href="javascript:closebar();">
<img border="0" style="float: left" width="16" src="[http://i237.photobucket.com/albums/ff260/dgemg/close.gif"](http://i237.photobucket.com/albums/ff260/dgemg/close.gif) height="16" title="Fechar janela"/></a>
</td>
</tr>
<tr><td>
<br/>
<center><a href="[http://feeds.feedburner.com/Dll10">
gostaria de deixar esse banner flutuante aparecendo na frente do iframe... no caso você encontra esse problema aq... www.dll10.com
Carregando comentários...