Marcos2 Postado Março 9, 2011 Denunciar Share Postado Março 9, 2011 alguém poderia me ajudar como fazer fechar esse anuncio adsense flutuante, pois quando clico no X para fechar o anuncio ele não fecha.vejam ai o código do anuncio:<style type="text/css"> #topbar{ position:absolute; border: 0px solid red; padding: 1px; background-color: #000000; width: 300px; visibility: visible; z-index: 250; left: 390px; top: 62px;} #Layer1 { position:absolute; width:200px; height:115px; z-index:251; left: 275px; top: 30px; visibility:inherit;} </style> <script type="text/javascript"> var persistclose=0 //set to 0 or 1. 1 means once the bar is manually closed, it will remain closed for browser sessionvar window_width = screen.width; var startX = ((window_width - 700) / 2) //set x offset of bar in pixelsvar startY = 150 //set y offset of bar in pixels var verticalpos="fromtop" //enter "fromtop" or "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.lengthend = 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";document.getElementById("xx").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.left=400+"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" style="width: 308px; height: 255px" > <div align="center"><font face="Verdana" size="1"><b><span style="color: #ffffff;"><strong><span style="color: #FFFAFA;">CLIQUE NO X PARA FECHAR ESTE ANUNCIO</span></strong></span></b></font></div> <!-- OPEN MOVE--> <script type="text/javascript"><!--google_ad_client = "ca-pub-3432518958104555";google_ad_host = "pub-1556223355139109";/* jhh */google_ad_slot = "8849513785";google_ad_width = 300;google_ad_height = 250;//--></script><script type="text/javascript"src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script> <div id="Layer1" style="width: 5px; height: 5px" > <span onclick="java script:window.closebar()"><img src="http://www.serv-vto.com/img/close.png" alt="FECHAR" width="10" height="10" /></span></div></div>esse é o código para blogger?Quem puder me ajudar posta ai um comentario! Citar Link para o comentário Compartilhar em outros sites More sharing options...
0 bareta Postado Março 10, 2011 Denunciar Share Postado Março 10, 2011 movendo. Citar Link para o comentário Compartilhar em outros sites More sharing options...
Pergunta
Marcos2
alguém poderia me ajudar como fazer fechar esse anuncio adsense flutuante, pois quando clico no X para fechar o anuncio ele não fecha.
vejam ai o código do anuncio:
<style type="text/css">
#topbar{
position:absolute;
border: 0px solid red;
padding: 1px;
background-color: #000000;
width: 300px;
visibility: visible;
z-index: 250;
left: 390px;
top: 62px;
}
#Layer1 {
position:absolute;
width:200px;
height:115px;
z-index:251;
left: 275px;
top: 30px;
visibility:inherit;
}
</style>
<script type="text/javascript">
var persistclose=0 //set to 0 or 1. 1 means once the bar is manually closed, it will remain closed for browser session
var window_width = screen.width;
var startX = ((window_width - 700) / 2) //set x offset of bar in pixels
var startY = 150 //set y offset of bar in pixels
var verticalpos="fromtop" //enter "fromtop" or "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";
document.getElementById("xx").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.left=400+"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" style="width: 308px; height: 255px" >
<div align="center"><font face="Verdana" size="1"><b><span style="color: #ffffff;"><strong><span style="color:
#FFFAFA;">CLIQUE NO X PARA FECHAR ESTE ANUNCIO</span></strong></span></b></font></div>
<!-- OPEN MOVE-->
<script type="text/javascript"><!--
google_ad_client = "ca-pub-3432518958104555";
google_ad_host = "pub-1556223355139109";
/* jhh */
google_ad_slot = "8849513785";
google_ad_width = 300;
google_ad_height = 250;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
<div id="Layer1" style="width: 5px; height: 5px" > <span onclick="java script:window.closebar()"><img
src="http://www.serv-vto.com/img/close.png" alt="FECHAR" width="10" height="10" /></span></div></div>
esse é o código para blogger?
Quem puder me ajudar posta ai um comentario!
Link para o comentário
Compartilhar em outros sites
1 resposta a esta questão
Posts Recomendados
Participe da discussão
Você pode postar agora e se registrar depois. Se você já tem uma conta, acesse agora para postar com sua conta.