The xkcdgadget (deprecated)
does exactly that, and has a static image that auto-updates. This static image also automatically resizes to a width of 320px.
In 30 seconds I have created a small app using the comic fetching 'library' I hacked together for xkcdmailer/xkcdgadget, which automatically issues a http location header to the current comic, as shown below. Come back to this thread tomorrow (or next update whenever that is) and the image will have changed.
Here's the code, if the above worked:
- Code: Select all
<img src='http://code.hoppingmouse.com/xkcdmailer/forward.php' alt='today\'s xkcd' />
Appreciated if you could put 'powered by xkcdmailer', and/or a link to http://ploogy.net/xkcdtools
on there somewhere, but obviously this isn't mandatory.
One last thing: this script uses xkcdmailer's cache rather than checking on each request, so may lag by 15 minutes. The Google Gadget updates instantly.
(Edit: It appears I owe NFSN money. Will have paid tomorrow.)
(Edit: Added deprecated note)