One of my friends really enjoyed the “Christmas Countdown” widget I have in the sidebar. I told her I would share the html code with her so she could use it in her blog. And it occurred to me that she might not be the only one interested in it, so here it is:
Copy and paste the following code into a text widget:
var day_description = “Christmas”;
var day_before = “Christmas Eve”;
var today = new Date();
var year = today.getYear();
if ((navigator.appName == “Microsoft Internet Explorer”) && (year < 2000))
year=”19″ + year;
if (navigator.appName == “Netscape”)
year=1900 + year;
var date = new Date(“December 25, ” + year);
var diff = date.getTime() – today.getTime();
var days = Math.floor(diff / (1000 * 60 * 60 * 24));
if (days > 1)
document.write(“There are ” + (days+1) + ” days until ” + day_description + “!”);
else if (days == 1)
document.write(“Tommorrow is ” + day_before + “!”);
else if (days == 0)
document.write(“Today is ” + day_before + “!”);
else if (days == -1)
document.write(“It’s ” + day_description + “!”);
else if (days < -1)
document.write(day_description + ” was ” + ((days+1)*-1) + (days < -2 ? ” days” : ” day”) + ” ago this year!”);
// End –>
There, that’s all there is to it. I am assuming you know how to do this, and if not, I’ll be happy to try to help if you leave me a comment.
I added an image, and some text to mine. Here’s what it looks like in html. The link to the image I used is shortened and highlighted in red. You will need to replace it with your own image link. My text is highlighted in green, and you’ll want to replace it as well:
<p><img width=”155″ height=”155″ alt=”” class=”art-lightbox” src=”http://shirleytwofeathers.com/solstice-e1476823767540.jpg“><br></p>
<p>I think it’s time go go shopping… maybe even buy some really cool stuff at my online shops!!</p>
Have fun with it!
Note: I did not write this code, I found it a long time ago and now I have no idea where it came from, or I would just give a link to the site where you could find it.
When you take two steps forward and only 1 step back, progress is made. But when it’s two steps forward two steps back… well… you don’t get anywhere fast. So, here’s the update. I managed to get a lot of posts up on Gypsy Magick, and it’s looking pretty good, except for one small thing. And that same small thing is annoyingly present on all the new sites because….
Well, I managed to totally break The Pagan Calendar, and the only way to unbreak it was to deactivate all the wordpress plug ins. Which fixed the problem. Only thing is, when I reactivated them, the widget that resizes all the clever little animated gifs I have implanted in the sidebars of all the sites… well, it quit resizing them, so they are way too big for their britches, and wil all have to be redone. Which is annoyingly tedius.
But wait, there’s more!
When I started replacing all those cool animated gifs, I thought it might be a good idea to have an email subscription form somewhere… so I decided to try one here. And it’s here. Only problem is, when I added one, it doubled itself and made two. And when I deleted it, it didn’t delete… well… it deleted but it’s still there and not editable… so I can’t put in the feedburner link… or at least I haven’t figured out how to link it properly… so, heads up to the 3 people who might read this. Don’t use the email subscription thingy yet – at least not until I’m sure it’s working properly.
So, I’m having too much fun with widgets… and as a result, we now have a receptionist on site. Go check out her personal page: Ask Our Receptionist and check her out.
Well, my super cool and fun Ask The Plumber page quit working after the first day. So, I have devised a fix and a work around, which I hope will actually work. I’d love it if someone would actually go and check it out for me and let me know if it’s still working or if it’s broken again. I love that little script and I really hope it continues to work for everyone. When I asked him how to fix his widget, he told me to: “Hit it with a hammer, hard.” LOL