Añadir Arbolito de Navidad a tu Blog...!!! Cuenta Regresiva

Debes Añadir un Gadget y seleccionas Etiqueta en HTML, en ella pegas este codigo y listo


<center><br />
<div style="display:scroll;position:fixed;bottom:0px;left:10px;color:#006633;font-size:80%;border: 0px solid #006633;padding:7px;z-index:888"><img src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjnXNiAD7d6pqleK73usIpfFpMuxZuXK2N46JVHkI530v225zvngpDX2cXo7cuPBgdbWo47JWMruHTYzZ6r3ZjuYIyp9YW1XzNYcYe4GauLyouDHByzbUm_oMGtKPTO34O-wIO_7tEOKJRe/s1600/navidad.gif" style="display: block;clear: both;"/><br />
<script type="text/javascript">
//<![CDATA[
var today=new Date()
var theoccasion=new Date(today.getFullYear(), 12, 25)
var beforeOccasionText="hasta la Navidad"
var onOccasiontext="Hoy es Navidad. Felices Fiestas!"


var monthtext=new Array("Jan","Feb","Mar","April","May","June","July","Aug","Sep","Oct","Nov","Dec")
theoccasion.setMonth(theoccasion.getMonth()-1) //change to 0-11 month format
var showdate="("+monthtext[theoccasion.getMonth()]+" "+theoccasion.getDate()+")"
var one_day=1000*60*60*24
var calculatediff=""


calculatediff=Math.ceil((theoccasion.getTime()-today.getTime())/(one_day))
if (calculatediff<0){
var nextyeartoday=new Date()
nextyeartoday.setFullYear(today.getFullYear()+1)
calculatediff=Math.ceil((nextyeartoday.getTime()-today.getTime())/(one_day)+calculatediff)
}


var pluraldayornot=(calculatediff==1)? "día" : "días"
if (calculatediff>0)
document.write("<b>"+calculatediff+" "+pluraldayornot+" "+beforeOccasionText+"!</b>")
else if (calculatediff==0)
document.write("<b>"+onOccasiontext+"!</b>")
//]]>
</script></div></center>

Nota: Donde dice http://www.nochesdigitales.org Cambialo por el Link de tu blog

Atte Rafa

Publicar un comentario

0 Comentarios