[cvs] [Wiki] changed: ImageNotFound

Jan Schneider jan at horde.org
Mon Jun 7 08:50:57 PDT 2004


jan  Mon,  7 Jun 2004 08:50:57 -0700

Modified page: http://wiki.horde.org/display.php?page=ImageNotFound
New Revision:  1.4

@@ -1,14 +1,13 @@
 Here some javascript the code that will load an error image
 
-ie ( right to save  and put in the klutz/graphics/ folder)
+ie (right to save  and put in the klutz/graphics/ folder)
 
 [http://www.bearne.com/images/FileNotFound.gif file not found]
 
 Put this in common-header.inc
 Please use the image preload from horde framework if there is one
 <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";
@@ -22,14 +21,12 @@
 }
 MM_preloadImages("<?php echo $registry->getParam('webroot', 'horde')?>/klutz/graphics/FileNotFound.gif")
 //-->
 </script>
----------------------------------------------------------------------
 </php>
 and the change in comic.inc ( look for the - and + )
 
 <php>
----------------------------------------------------------------------
 <table border="0" cellpadding="1" cellspacing="0">
  <tr>
   <td align="left" class="header">
 <?php if (!empty($homepage)): ?>
@@ -49,14 +46,11 @@
 +  <img alt="<?php echo $name ?>" src="<?php echo $url ?>" <?php echo $size?> id="<?php echo $url ?>" onerror="imageNotFound(this);"/>
   </td>
  </tr>
 </table>
------------------------------------------------------------------------
 </php>
 I just used the url as the id I knew it would work but please replace with
 better code
 
 
 
 Paul Bearne
-
-[KlutzMods Klutz Mods]


More information about the cvs mailing list