Вы находитесь на странице: 1из 4

Ae galera outro otimo tutorial aqui que eu to fazendo e trago aqui hoje mostrand o pra voces como colocar

um anuncio flutuante em seu blog. 1. Faa o login no blogger > Design 2. Adicione um widget HTML e depois insira o seguinte codigo AQUI 3. La no fim tem escrito 'CODIGO ANUNCIO' e no luga dele adicione o codigo do se u anunci. OBS: Quando a pessoa fechar o anuncio se o anuncio tiver em flame nao funcionara ele contiara aberto! PRONTINHO!!! <!futuante> <!-- BEGIN MOVE --> <style type="text/css"> #topbar{ position:absolute; border: 0px solid red; padding: 1px; background-color: #FFFFFF; height: 200px; width: 200px; visibility: hidden; z-index: 100; } </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 - 1015) / 2) //set x offset of bar in pixels var startY = 185 //set y offset of bar in pixels var verticalpos="fromtop" //enter "fromtop" or "frombottom" function iecompattest(){ return (document.compatMode && document.compatMode!="BackCompat")? document.docu mentElement : 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.center=x+"px";this.style.top=y+"px";}; el.x = startX; if (verticalpos=="fromtop") el.y = startY; else{ el.y = ns ? pageYOffset + innerHeight : iecompattest().scrollTop + iecompattes t().clientHeight; el.y -= startY; } return el; } window.stayTopCenter=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("stayTopCenter()", 10); } ftlObj = ml("topbar"); stayTopCenter(); } 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: 250; height: 250" align="RIGHT"> <a href="" targe t="_blank"><font color="#808080"></font></a><span onclick="javascript:window.clo sebar()"><font face="Verdana" size="1"><b><font color="#FF0000">Fechar X</font></b></font></span> <br /> <!-- OPEN MOVE--> CODiGO DO ANUNCIO AQUI </div> <!-- END MOVE --></!futuante> ingles

Yo guys another great tutorial here that I'm doing and I bring here today to sho w you how to place an ad floating on his blog.

1. Login to blogger> Design 2. Add an HTML widget and then enter the following code HERE 3. In the end it is written 'Code Ads' and add it luga the code of your advertis ing. NOTE: When the person closing the announcement if the announcement has not worke d in flame Contier it open! That's it! <! Futuante> <! - BEGIN MOVE -> <style type="text/css"> # Topbar { position: absolute; border: 0px solid red; padding: 1px; background-color: # FFFFFF; height: 200px; width: 200px; visibility: hidden; z-index: 100; } </ Style> <script type="text/javascript"> persistclose var = 0 / / set to 0 or 1. 1 means once the bar is closed manually, it will Remain browser session is closed window_width var = screen.width; var startx = ((window_width - 1015) / 2) / / set x offset of bar in pixels StartY var = 185 / / set y offset of bar in pixels verticalpos var = "fromtop" / / enter "fromtop" or "frombottom" iecompattest function () { return (document.compatMode document.compatMode & &! = "BackCompat")? document.d ocumentElement: document.body } get_cookie function (name) { var search = Name + "=" var returnValue = ""; if (document.cookie.length> 0) { offset = document.cookie.indexOf (search) if (offset! = -1) { offset + = search.length document.cookie.indexOf (";", end = offset); if (end == -1) end = document.cookie.length; returnvalue = unescape (document.cookie.substring (offset, end)) } } return ReturnValue; } closebar function () { if (persistclose) document.cookie = "remainclosed = 1"; document.getElementById ("topbar"). style.visibility = "hidden"; } staticbar function () { barheight = document.getElementById ("topbar"). offsetHeight var ns = (navigator.appName.indexOf ("Netscape")! = -1) window.opera;

var d = document; ml function (id) { d.getElementById var el = (id); if (! persistclose persistclose get_cookie & & ("remainclosed ")=="") el.style.visibility = "visible" if (d.layers) el.style = el; el.sP = function (x, y) {x = this.style.center + "px"; this.style.top = y + "p x";} 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.stayTopCenter = 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 ("stayTopCenter ()", 10); } ftlObj ml = ("topbar"); stayTopCenter (); } 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: 250; height: 250" align="right"> <a href="" targe t="_blank"> <font color="#808080"> </ font> < / a> <span onclick="javascript:win dow.closebar()"> <font face = "Verdana" size = "1"> <font color="#FF0000"> <b> Close X </ font> </ b> </ font> </ span> <br /> <! - OPEN MOVE -> Ad code HERE </ Div> <! - END MOVE --></! futuante>

Вам также может понравиться