Lo pueden ver aquí:
<center><br /> <div style="border: 0px solid rgb(0, 102, 51); color: #006633; font-size: 80%; left: 0px; padding: 7px; z-index: 888;"><a href="http://www.miltrucosblogger.info/2013/12/gadget-papa-noel-blogger.html"><br /> <img src="http://www.miltrucosblogger.com/wp-content/uploads/2013/12/papa-noel-navidad.gif" style="clear: both; display: block;" /></a><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>
Con el anterior código el gadget se vera en el sidebar del blog, pero si quieres que el gadget se vea al final del blog agrega el siguiente código en vez del anterior:
<center><br /> <div style="display:scroll;position:fixed;bottom:0px;left:0px;color:#006633;font-size:80%;border: 0px solid #006633;padding:7px;z-index:888"><a href="http://www.gadgetsblogger.com/2011/11/arbol-de-navidad-que-muestra-los-dias.html"><br /> <img src="http://www.miltrucosblogger.com/wp-content/uploads/2013/12/papa-noel-navidad.gif" style="display: block;clear: both;"/></a><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>
Espero que les haya gustado este espectacular gadget y que sigan visitando Mil Trucos Blogger.
0 comentarios