You might have noticed the awesome box over there in the sidebar on the right.
Now you, too, can have Othar Tryggvassens status right on your web page, with this little code snippet below. Copypaste in, place image file into fitting directory, apply CSS however preferred, and put the actual script in an external file and/or at the very bottom of your page for better loading times.
(Related news: Girl Genius is still the most awesome comic ever, since it has adventure, romance, MAD SCIENCE and zeppelins. Check it out, now.)
<!-- Othar status -->
<div id="othar_container" class="sidebar_box"><h4 id="othar">Othar Tryggvassen Status</h4>
<a href="http://twitter.com/Othar"><img alt="Othar" src="othar.jpg" class="othar"/></a>
</div>
<script type="text/javascript">
function otharstatus(feed) {
var span = document.createElement('span')
span.appendChild(document.createTextNode(feed.value.items[0].content))
document.getElementById('othar_container').appendChild(span)
}
var d_head = document.getElementsByTagName("head")[0];
var newScript = document.createElement('script');
newScript.type = 'text/javascript';
newScript.src = 'http://pipes.yahoo.com/pipes/pipe.run?_id=sHMyTsRF3BGBQrz_dLq02Q&_render=json&_callback=otharstatus';
d_head.appendChild(newScript);
</script>
Image file used here:
[Get it]
This month
| February | ||||||
|---|---|---|---|---|---|---|
| Mo | Tu | We | Th | Fr | Sa | Su |
| 30 | 31 | 1 | 2 | 3 | 4 | 5 |
| 6 | 7 | 8 | 9 | 10 | 11 | 12 |
| 13 | 14 | 15 | 16 | 17 | 18 | 19 |
| 20 | 21 | 22 | 23 | 24 | 25 | 26 |
| 27 | 28 | 29 | 1 | 2 | 3 | 4 |

— Full post RSS feed
— Comment RSS feed
— CC-BY-NC license
— Valid XHTML 1.1
— Debian operated
— Powered by Ruby
— Co-Powered by Perl
— Made with kate