script.js
上传用户:huihehuasu
上传日期:2007-01-10
资源大小:6948k
文件大小:0k
源码类别:

xml/soap/webservice

开发平台:

C/C++

  1. rolloverImagesOn=new Array();
  2. rolloverImagesOff=new Array();
  3. function rolloverOn(name) {
  4.   if(rolloverImagesOn[name]){
  5.     document.images[name].src=rolloverImagesOn[name].src;
  6.   }
  7. }
  8. function rolloverOff(name) {
  9.   if(rolloverImagesOff[name]){
  10.       document.images[name].src=rolloverImagesOff[name].src;
  11.   }
  12. }
  13. function rolloverLoad(name,on,off) {
  14.   rolloverImagesOn[name]=new Image();
  15.   rolloverImagesOn[name].src=on;
  16.   rolloverImagesOff[name]=new Image();
  17.   rolloverImagesOff[name].src=off;
  18. }