\documentclass{article}
\usepackage{ulem}
\usepackage{graphicx}
\usepackage{hyperref}
\pagestyle{headings}
\begin{document}
Here some javascript the code that will load an error image

ie (right mouse to save  and put in the klutz/graphics/ folder)

<a href="http://www.bearne.com/images/FileNotFound.gif">file not found</a>

Put this in common-header.inc<br />
Please use the image preload from horde framework if there is one

<pre><code class="language-php">
<script language="javascript" type="text/javascript">
<!--
function imageNotFound(img)\{
	document.getElementById(img.id).src="<?php echo \$registry->getParam 'webroot', 'horde') ?>/klutz/graphics/FileNotFound.gif";

\}
// dreamwever preload replace with call to horde version
function MM\_preloadImages() \{ //v3.0
  var d=document; if(d.images)\{ if(!d.MM\_p) d.MM\_p=new Array();
    var i,j=d.MM\_p.length,a=MM\_preloadImages.arguments; for(i=0; i<a.length;i++)
    if (a[i].indexOf("\#")!=0)\{ d.MM\_p[j]=new Image; d.MM\_p[j++].src=a[i];\}\}
\}
MM\_preloadImages("<?php echo \$registry->getParam('webroot', 'horde')?>/klutz/graphics/FileNotFound.gif")
//-->
</script>
</code></pre>
and the change in comic.inc ( look for the - and + )

<pre><code class="language-php">
<table border="0" cellpadding="1" cellspacing="0">
 <tr>
  <td align="left" class="header">
<?php if (!empty(\$homepage)): ?>
   <a href="<?php echo \$homepage; ?>" target="\_blank" class="header">
    <?php printf(\_("\%s by \%s"), \$name, \$author) ?>
   </a>
<?php else: ?>
    <?php printf(\_("\%s by \%s"), \$name, \$author) ?>
<?php endif; ?>
  </td>
  <td align="right" class="header"><span class="smallheader"><?php echo strftime("\%B \%d, \%Y", \$date) ?></span></td>
 </tr>
 <tr>
  <td colspan="2">
 
-  <img alt="<?php echo \$name ?>" src="<?php echo \$url ?>" <?php echo \$size?> />
+  <img alt="<?php echo \$name ?>" src="<?php echo \$url ?>" <?php echo \$size?> id="<?php echo \$url ?>" onerror="imageNotFound(this);"/>
  </td>
 </tr>
</table>
</code></pre>
I just used the url as the id I knew it would work but please replace with<br />
better code

Paul Bearne

\end{document}
