Caja de avisos con efecto de desvanecimiento – Abogado

El siguiente script nos dará una caja de mensajes con un efecto defade, es decir, con desvanecimiento entre cada mensaje.
Aunque no tienen links los mensajes, este truquito pueden servirte para dar la bienvenida, dejar un aviso, o poner un recordatorio en el blog.

Sólo entra aDiseño | Añadir un gadget, y en un elementoHTML/Javascrip pega lo siguiente:
script

var delay=3000 //pausa (en milisegundos)
var fcontent=new Array()
begintag='font face="Arial" size="2"' //tag que abre los mensajes
fcontent[0]="Esta es una caja de avisos y mensajes..."
fcontent[1]="Con un efecto de desvanecimiento..."
fcontent[2]="Aprende cómo tener uno aquí..."
fcontent[3]="bCiudadBlogger.com/b"
closetag='/font'

var fwidth=160 //ancho
var fheight=150 //alto

///No editar/////////////////

var ie4=document.all&&!document.getElementById
var ns4=document.layers
var DOM2=document.getElementById
var faderdelay=0
var index=0

if (DOM2)
faderdelay=2000

//function to change content
function changecontent(){
if (index=fcontent.length)
index=0
if (DOM2){
document.getElementById("fscroller").style.color="rgb(255,255,255)"
document.getElementById("fscroller").innerHTML=begintag+fcontent[index]+closetag
colorfade()
}
else if (ie4)
document.all.fscroller.innerHTML=begintag+fcontent[index]+closetag
else if (ns4){
document.fscrollerns.document.fscrollerns_sub.document.write(begintag+fcontent[index]+closetag)
document.fscrollerns.document.fscrollerns_sub.document.close()
}

index++
setTimeout("changecontent()",delay+faderdelay)
}

// colorfade() partially by Marcio Galli for Netscape Communications. ////////////

frame=20;
hex=255 // Initial color value.

function colorfade() {
// 20 frames fading process
if(frame0) {
hex-=12; // increase color value
document.getElementById("fscroller").style.color="rgb("+hex+","+hex+","+hex+")"; // Set color value.
frame--;
setTimeout("colorfade()",20);
}
else{
document.getElementById("fscroller").style.color="rgb(0,0,0)";
frame=20;
hex=255
}
}

if (ie4||DOM2)
document.write('div id="fscroller" style="border:1px solid black;width:'+fwidth+';height:'+fheight+';padding:2px"/div')

window.onload=changecontent
/script


ilayer id="fscrollerns" width="&{fwidth};" height="&{fheight};"layer id="fscrollerns_sub" left="0" width="&{fwidth};" top="0" height="&{fheight};"/layer/ilayer

Cambia lo que está encolor rojo por tu mensaje, puedes agregar o quitar más líneas.
Puedes modificar el ancho y alto de la caja cambiando los valores que están encolor azul al inicio del código.
Para quitar el borde de la caja busca donde dice border encolor verde y cambia 1px por 0px.

Si quieres cambiar el color del texto busca lo que está en negritastyle.color="rgb(0,0,0)" y pon ahí el código hexadecimal del color, por ejemplo si lo quieres rojo sería rgb(255,0,0), si lo quieres color verde sería rgb(00,80,00), amarillo sería rgb(255,255,0), etc.

IMPORTANTE: Es posible que si tienes muchos script en tu blog, la caja de avisos no funcione.
Puedes ver un ejemplo funcionando eneste blog de pruebas.

Massage School Dallas Texas Criminal defense lawyer Mobile casino CAR INSURANCE QUOTES PA donate your car for money yahoo web hosting car accident lawyers life insurance quotes MESOTHELIOMA LAW FIRM MASSAGE SCHOOL DALLAS TEXAS buy structured settlements forensics online course mesothelioma suit Donate your car for kids mesothelioma attorney california Best criminal lawyer in Arizona Hire php programmers Best social media platforms Online Criminal Justice Degree structured settlements companies Holland Michigan College washington mesothelioma attorney WordPress hosting car insurance companies Car Insurance Quotes Colorado Online casino Hire php developers Dedicated Hosting Dedicated Server Hosting criminal defense attorneys florida sell structured settlement calculator Massage school Dallas Texas personal injury accident lawyer DONATE OLD CARS TO CHARITY Bankruptcy lawyer student loan consolidation program maritime lawyer houston DONATING USED CARS TO CHARITY motor replacements refinance with bad credit Casino Casino reviews Social media campaigns Home phone internet bundle fortis health insurance temporary Make money online Australia Criminal lawyer Miami mesothelioma lawyer california Low Credit Line Credit Cards Psychic for Free Social media platforms for business Computer science classes online Car insurance quotes pa mesothelioma settlements Online Christmas cards DUI lawyer Live casino Paperport Promotional Code sell my structured settlement Online classes annuity payment Dayton freight lines WordPress themes for designers mesothelioma information Data Recovery Raid Best social media platforms for business Service business software business administration masters Business finance group mesothelioma attorneys california illinois mesothelioma lawyer small business administration sba compare life assurance Donate your Car for Money mesothelioma lawsuits colorado auto accident attorney Dwi lawyer Automobile Accident Attorney Home Phone Internet Bundle Criminal lawyer paperport promotional code New social media platforms Donate car for tax credit Life insurance co Lincoln How to Donate A Car in California Car Insurance Quotes MN See more at http//wwwginfostopnet/ LIFE INSURANCE CO LINCOLN boca raton personal injury attorney california motorcycle accident lawyer Php programmers for hire Hire php developer Learning adobe illustrator Seo company california mesothelioma attorney cheap car insurance in virginia Php programmers CRIMINAL DEFENSE ATTORNEYS FLORIDA Seo companies motorcycle accident attorney sacramento truck accident attorney texas mesothelioma law firm STRUCTURED ANNUITY SETTLEMENT mesothelioma symptoms Mesothelioma Law Firm Forensics online course Custom WordPress theme designer mesothelioma ct Business management software Seo services accident car florida lawyer PHD IN COUNSELING EDUCATION Nunavut Culture injury lawyer houston tx Nunavut culture Best Seo company

Share: