xml-general mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From p...@locus.apache.org
Subject cvs commit: xml-site/targets/xerces-p/resources script.js
Date Tue, 04 Jan 2000 15:21:00 GMT
pier        00/01/04 07:21:00

  Modified:    targets/cocoon/resources script.js
               targets/fop/resources script.js
               targets/resources script.js
               targets/xalan/resources script.js
               targets/xerces-c/resources script.js
               targets/xerces-j/resources script.js
               targets/xerces-p/resources script.js
  Log:
  Modified script causing errors when images are not yet loaded.
  
  Revision  Changes    Path
  1.3       +21 -17    xml-site/targets/cocoon/resources/script.js
  
  Index: script.js
  ===================================================================
  RCS file: /home/cvs/xml-site/targets/cocoon/resources/script.js,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- script.js	1999/12/25 08:22:11	1.2
  +++ script.js	2000/01/04 15:20:51	1.3
  @@ -1,17 +1,21 @@
  -rolloverImagesOn=new Array();
  -rolloverImagesOff=new Array();
  -
  -function rolloverOn(name) {
  -  document.images[name].src=rolloverImagesOn[name].src;
  -}
  -
  -function rolloverOff(name) {
  -  document.images[name].src=rolloverImagesOff[name].src;
  -}
  -
  -function rolloverLoad(name,on,off) {
  -  rolloverImagesOn[name]=new Image();
  -  rolloverImagesOn[name].src=on;
  -  rolloverImagesOff[name]=new Image();
  -  rolloverImagesOff[name].src=off;
  -}
  +rolloverImagesOn=new Array();
  +rolloverImagesOff=new Array();
  +
  +function rolloverOn(name) {
  +  if(rolloverImagesOn[name]){
  +    document.images[name].src=rolloverImagesOn[name].src;
  +  }
  +}
  +
  +function rolloverOff(name) {
  +  if(rolloverImagesOff[name]){
  +      document.images[name].src=rolloverImagesOff[name].src;
  +  }
  +}
  +
  +function rolloverLoad(name,on,off) {
  +  rolloverImagesOn[name]=new Image();
  +  rolloverImagesOn[name].src=on;
  +  rolloverImagesOff[name]=new Image();
  +  rolloverImagesOff[name].src=off;
  +}
  
  
  
  1.3       +21 -17    xml-site/targets/fop/resources/script.js
  
  Index: script.js
  ===================================================================
  RCS file: /home/cvs/xml-site/targets/fop/resources/script.js,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- script.js	1999/12/25 08:22:17	1.2
  +++ script.js	2000/01/04 15:20:59	1.3
  @@ -1,17 +1,21 @@
  -rolloverImagesOn=new Array();
  -rolloverImagesOff=new Array();
  -
  -function rolloverOn(name) {
  -  document.images[name].src=rolloverImagesOn[name].src;
  -}
  -
  -function rolloverOff(name) {
  -  document.images[name].src=rolloverImagesOff[name].src;
  -}
  -
  -function rolloverLoad(name,on,off) {
  -  rolloverImagesOn[name]=new Image();
  -  rolloverImagesOn[name].src=on;
  -  rolloverImagesOff[name]=new Image();
  -  rolloverImagesOff[name].src=off;
  -}
  +rolloverImagesOn=new Array();
  +rolloverImagesOff=new Array();
  +
  +function rolloverOn(name) {
  +  if(rolloverImagesOn[name]){
  +    document.images[name].src=rolloverImagesOn[name].src;
  +  }
  +}
  +
  +function rolloverOff(name) {
  +  if(rolloverImagesOff[name]){
  +      document.images[name].src=rolloverImagesOff[name].src;
  +  }
  +}
  +
  +function rolloverLoad(name,on,off) {
  +  rolloverImagesOn[name]=new Image();
  +  rolloverImagesOn[name].src=on;
  +  rolloverImagesOff[name]=new Image();
  +  rolloverImagesOff[name].src=off;
  +}
  
  
  
  1.3       +21 -17    xml-site/targets/resources/script.js
  
  Index: script.js
  ===================================================================
  RCS file: /home/cvs/xml-site/targets/resources/script.js,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- script.js	1999/12/25 08:22:24	1.2
  +++ script.js	2000/01/04 15:20:59	1.3
  @@ -1,17 +1,21 @@
  -rolloverImagesOn=new Array();
  -rolloverImagesOff=new Array();
  -
  -function rolloverOn(name) {
  -  document.images[name].src=rolloverImagesOn[name].src;
  -}
  -
  -function rolloverOff(name) {
  -  document.images[name].src=rolloverImagesOff[name].src;
  -}
  -
  -function rolloverLoad(name,on,off) {
  -  rolloverImagesOn[name]=new Image();
  -  rolloverImagesOn[name].src=on;
  -  rolloverImagesOff[name]=new Image();
  -  rolloverImagesOff[name].src=off;
  -}
  +rolloverImagesOn=new Array();
  +rolloverImagesOff=new Array();
  +
  +function rolloverOn(name) {
  +  if(rolloverImagesOn[name]){
  +    document.images[name].src=rolloverImagesOn[name].src;
  +  }
  +}
  +
  +function rolloverOff(name) {
  +  if(rolloverImagesOff[name]){
  +      document.images[name].src=rolloverImagesOff[name].src;
  +  }
  +}
  +
  +function rolloverLoad(name,on,off) {
  +  rolloverImagesOn[name]=new Image();
  +  rolloverImagesOn[name].src=on;
  +  rolloverImagesOff[name]=new Image();
  +  rolloverImagesOff[name].src=off;
  +}
  
  
  
  1.3       +21 -17    xml-site/targets/xalan/resources/script.js
  
  Index: script.js
  ===================================================================
  RCS file: /home/cvs/xml-site/targets/xalan/resources/script.js,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- script.js	2000/01/03 15:23:39	1.2
  +++ script.js	2000/01/04 15:20:59	1.3
  @@ -1,17 +1,21 @@
  -rolloverImagesOn=new Array();
  -rolloverImagesOff=new Array();
  -
  -function rolloverOn(name) {
  -  document.images[name].src=rolloverImagesOn[name].src;
  -}
  -
  -function rolloverOff(name) {
  -  document.images[name].src=rolloverImagesOff[name].src;
  -}
  -
  -function rolloverLoad(name,on,off) {
  -  rolloverImagesOn[name]=new Image();
  -  rolloverImagesOn[name].src=on;
  -  rolloverImagesOff[name]=new Image();
  -  rolloverImagesOff[name].src=off;
  -}
  +rolloverImagesOn=new Array();
  +rolloverImagesOff=new Array();
  +
  +function rolloverOn(name) {
  +  if(rolloverImagesOn[name]){
  +    document.images[name].src=rolloverImagesOn[name].src;
  +  }
  +}
  +
  +function rolloverOff(name) {
  +  if(rolloverImagesOff[name]){
  +      document.images[name].src=rolloverImagesOff[name].src;
  +  }
  +}
  +
  +function rolloverLoad(name,on,off) {
  +  rolloverImagesOn[name]=new Image();
  +  rolloverImagesOn[name].src=on;
  +  rolloverImagesOff[name]=new Image();
  +  rolloverImagesOff[name].src=off;
  +}
  
  
  
  1.3       +21 -17    xml-site/targets/xerces-c/resources/script.js
  
  Index: script.js
  ===================================================================
  RCS file: /home/cvs/xml-site/targets/xerces-c/resources/script.js,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- script.js	1999/12/25 08:22:31	1.2
  +++ script.js	2000/01/04 15:20:59	1.3
  @@ -1,17 +1,21 @@
  -rolloverImagesOn=new Array();
  -rolloverImagesOff=new Array();
  -
  -function rolloverOn(name) {
  -  document.images[name].src=rolloverImagesOn[name].src;
  -}
  -
  -function rolloverOff(name) {
  -  document.images[name].src=rolloverImagesOff[name].src;
  -}
  -
  -function rolloverLoad(name,on,off) {
  -  rolloverImagesOn[name]=new Image();
  -  rolloverImagesOn[name].src=on;
  -  rolloverImagesOff[name]=new Image();
  -  rolloverImagesOff[name].src=off;
  -}
  +rolloverImagesOn=new Array();
  +rolloverImagesOff=new Array();
  +
  +function rolloverOn(name) {
  +  if(rolloverImagesOn[name]){
  +    document.images[name].src=rolloverImagesOn[name].src;
  +  }
  +}
  +
  +function rolloverOff(name) {
  +  if(rolloverImagesOff[name]){
  +      document.images[name].src=rolloverImagesOff[name].src;
  +  }
  +}
  +
  +function rolloverLoad(name,on,off) {
  +  rolloverImagesOn[name]=new Image();
  +  rolloverImagesOn[name].src=on;
  +  rolloverImagesOff[name]=new Image();
  +  rolloverImagesOff[name].src=off;
  +}
  
  
  
  1.3       +21 -17    xml-site/targets/xerces-j/resources/script.js
  
  Index: script.js
  ===================================================================
  RCS file: /home/cvs/xml-site/targets/xerces-j/resources/script.js,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- script.js	1999/12/25 08:22:40	1.2
  +++ script.js	2000/01/04 15:21:00	1.3
  @@ -1,17 +1,21 @@
  -rolloverImagesOn=new Array();
  -rolloverImagesOff=new Array();
  -
  -function rolloverOn(name) {
  -  document.images[name].src=rolloverImagesOn[name].src;
  -}
  -
  -function rolloverOff(name) {
  -  document.images[name].src=rolloverImagesOff[name].src;
  -}
  -
  -function rolloverLoad(name,on,off) {
  -  rolloverImagesOn[name]=new Image();
  -  rolloverImagesOn[name].src=on;
  -  rolloverImagesOff[name]=new Image();
  -  rolloverImagesOff[name].src=off;
  -}
  +rolloverImagesOn=new Array();
  +rolloverImagesOff=new Array();
  +
  +function rolloverOn(name) {
  +  if(rolloverImagesOn[name]){
  +    document.images[name].src=rolloverImagesOn[name].src;
  +  }
  +}
  +
  +function rolloverOff(name) {
  +  if(rolloverImagesOff[name]){
  +      document.images[name].src=rolloverImagesOff[name].src;
  +  }
  +}
  +
  +function rolloverLoad(name,on,off) {
  +  rolloverImagesOn[name]=new Image();
  +  rolloverImagesOn[name].src=on;
  +  rolloverImagesOff[name]=new Image();
  +  rolloverImagesOff[name].src=off;
  +}
  
  
  
  1.3       +21 -17    xml-site/targets/xerces-p/resources/script.js
  
  Index: script.js
  ===================================================================
  RCS file: /home/cvs/xml-site/targets/xerces-p/resources/script.js,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- script.js	1999/12/25 08:22:42	1.2
  +++ script.js	2000/01/04 15:21:00	1.3
  @@ -1,17 +1,21 @@
  -rolloverImagesOn=new Array();
  -rolloverImagesOff=new Array();
  -
  -function rolloverOn(name) {
  -  document.images[name].src=rolloverImagesOn[name].src;
  -}
  -
  -function rolloverOff(name) {
  -  document.images[name].src=rolloverImagesOff[name].src;
  -}
  -
  -function rolloverLoad(name,on,off) {
  -  rolloverImagesOn[name]=new Image();
  -  rolloverImagesOn[name].src=on;
  -  rolloverImagesOff[name]=new Image();
  -  rolloverImagesOff[name].src=off;
  -}
  +rolloverImagesOn=new Array();
  +rolloverImagesOff=new Array();
  +
  +function rolloverOn(name) {
  +  if(rolloverImagesOn[name]){
  +    document.images[name].src=rolloverImagesOn[name].src;
  +  }
  +}
  +
  +function rolloverOff(name) {
  +  if(rolloverImagesOff[name]){
  +      document.images[name].src=rolloverImagesOff[name].src;
  +  }
  +}
  +
  +function rolloverLoad(name,on,off) {
  +  rolloverImagesOn[name]=new Image();
  +  rolloverImagesOn[name].src=on;
  +  rolloverImagesOff[name]=new Image();
  +  rolloverImagesOff[name].src=off;
  +}
  
  
  

Mime
View raw message