1. Brian Ritchie
  2. Wiki

Wiki

Clone wiki

Wiki / Daily Dilbert

No web portal is complete without a Dilbert comic strip! Scott Adams provides a daily dilbert comic on Dilbert.com. This strip is now available to integrate into your web site through this simple service. For example, I use this service to hook into my SharePoint portal. Add the following JavaScript to your page or content web part.

<script>
    var now = new Date();
    var day = now.getDate();
    var month = now.getMonth() + 1;
    var year = now.getFullYear()%100;
    var dayofweek = (now.getDay() == 0) ? 's' : 'd';
    if (day < 10) day = '0' + day;
    if (month < 10) month = '0' + month;
    document.write('<img src="http://thedilbertstore.com/images/periodic_content/dilbert/dt' + year + '' + month + '' + day + dayofweek + 'hct.jpg">');
</script>

Updated