You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cocoon.apache.org by pi...@locus.apache.org on 2000/01/04 01:48:34 UTC

cvs commit: xml-stylebook/styles/apachexml/resources script.js

pier        00/01/03 16:48:34

  Modified:    styles/apachexml/resources script.js
  Log:
  Fixed bug in JavaScript code. Thanks to Jeff Martin <je...@dial.pipex.com>
  
  Revision  Changes    Path
  1.3       +6 -2      xml-stylebook/styles/apachexml/resources/script.js
  
  Index: script.js
  ===================================================================
  RCS file: /home/cvs/xml-stylebook/styles/apachexml/resources/script.js,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- script.js	1999/12/01 21:10:42	1.2
  +++ script.js	2000/01/04 00:48:34	1.3
  @@ -2,11 +2,15 @@
   rolloverImagesOff=new Array();
   
   function rolloverOn(name) {
  -  document.images[name].src=rolloverImagesOn[name].src;
  +  if(rolloverImagesOn[name]){
  +    document.images[name].src=rolloverImagesOn[name].src;
  +  }
   }
   
   function rolloverOff(name) {
  -  document.images[name].src=rolloverImagesOff[name].src;
  +  if(rolloverImagesOff[name]){
  +      document.images[name].src=rolloverImagesOff[name].src;
  +  }
   }
   
   function rolloverLoad(name,on,off) {