Stick it on Github as three files - image, html, css - so folks can "watch" it. I've found that the watch feature of github helps me remember all these little nifty snippets of functionality so that, one day, when the need comes around, I actually remember that the thing exists, I can find it easily, and I can use it.
The only problem about that on GitHub is that you can't "unwatch" all the notifications while still watching the project. I'm watching 128 repositories and my news feed is just noise to me now. :-/
GitHub needs a major overhaul of the entire activity stream. Right now I'm forced to use the GitMarks Chrome Extension and keep a very curated list of projects / people to watch. And the feed is still chaotic and unusable most of the time. They overhauled Issues from a useless issue tracker into my primary Project Management tool, so I'm quite confident that they can revamp the actions feed successfully.
Sometimes though, I wonder why I don't use the tools which were made for this. I.e. the browser bookmarks.
Maybe the browser bookmarks really need some improvements to be useable. Because in many cases, I tend not to use them (leave open tabs instead, use 'watch project' on GitHub, and so on).
E.g., there could be some rules, like when I bookmark a page on GitHub, it automatically puts it into a bookmark directory called "GitHub projects" or so.
Maybe also more dynamics. Like there could be scripts running on a bookmark directory which check for updates on the specific site/project and push them up, print a headline or so.
Using JavaScript to render to a canvas will work in all modern browsers, while maintaining (or even enhancing) the CSS's flexibility. I first thought the JavaScript solution would even be about the length of Moeed's CSS, but after writing it out my code's about 5x longer :(
Are you using an image element to support printing? There's no other reasons to not use CSS3 to create the dot (or the somewhat more pragmatic approach of setting it as a background image on the target element, reducing your markup), as I see it?
I think you should also expect that people could want more than one target on their maps. There's no downside to switching from IDs to classes here.
CSS beats graphics because it can be changed programatically. Browser supporting, _all_ the parameters can be changed to suit the rest of the UI. If the designer writes their CSS in browser like I do, it's instantaneous and immensely powerful.
Well you could script it to change the rate of pulsing in JS I guess... Still don't think this is very exciting anyways. Why the png and not pure a pure css icon for instance (although that's not very interesting to me either)?
I recently did something similar for more general elements as a jquery plugin: http://jquerypulsate.kilianvalkhof.com/ it uses the outline-offset css property, which doesn't seem that well known but seems quite useful too.
Last year I (along with the rest of our Node Knockout team) built a game that had a pulsing dot similar to this one. We used Raphael (SVG/VML). Although it's much heavier than this using Raphael is cross-browser. It might be a suitable fallback.
I want to open source the whole project but haven't had time to clean it up.
My suggestion: don't bother cleaning it up, just publish it. If the two realistic options are your code dropping off the face of the earth because it's never published, or it being put in a place where someone might find it useful and run with it, the latter is far more beneficial to society.
If you're concerned about your personal reputation (which in my experience tends to be the case) then consider you're likely better off as a prolific coder than a sparse one, and if anything we should be pushing the industry towards more open exchange of code so as to reduce loss & waste.
Pretty nice, but it appears that whatever method is used to generate the pulse, it causes the CPU utilization of the Desktop Windows Manager (dwm.exe) to shoot up to about 10-15% when using Chrome.
I mean I know it's the weekend and maybe a slow news day, but really?