Stick It: I Made A Widget
Monday, August 20th, 2007![]()
So, my wife has been getting into blogging. Her primary blog is "Naked Insight" (not that kind of naked! get your minds out of the gutter) which is focused on production and marketing in the Entertainment world. Her latest effort is "The Daily Stick" - a collection of memorable quotations. They might be funny, weird, disturbing or disgusting but they Stick with her so she puts them on a virtual sticky note for you. For whatever reason, this got me all jazzed up and I wrote this simple little widget that will display today’s Sticky on your site. It’s really a very simple JavaScript that takes today’s date and parses it into an image URL of today’s Stick.
So, if you think it’s fun, here’s the code to put it into your site (note, provided as-is with no guarantee or warranty):
Update:
Thanks to Derek Anderson over at the Widget Lab, I have updated the script today. Based on Derek’s recommendation I have added some size options to the Daily Stick Widget.
If you leave the id attribute as ‘dailystick’ (as in the above example) the image will be a thumbnail at 128×128 pixels.
Change the paragraph id to "mediumdailystick" and the image will be 200×200 pixels.
Finally, setting the id to "bigdailystick" will display the sticky note in all its glory at 300×300 pixels.





