script.js
上传用户:huihehuasu
上传日期:2007-01-10
资源大小:6948k
文件大小:0k
- 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;
- }