script.js
上传用户:zhuqijet
上传日期:2013-06-25
资源大小:10074k
文件大小:1k
源码类别:

词法分析

开发平台:

Visual 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. }