home *** CD-ROM | disk | FTP | other *** search
INI File | 1998-12-18 | 413 b | 24 lines |
- [Head Block]
- theimage = new Preload();
- function Preload(up, dn)
- {
- this.up = new Image();
- this.up.src = up;
- this.dn = new Image();
- this.dn.src = dn;
- }
-
- function up(pointer)
- {
- image = document[pointer]
- name = image.name;
- document[name].src = theimage[name].up.src;
- }
-
- function dn(pointer)
- {
- image = document[pointer]
- name = image.name;
- document[name].src = theimage[name].dn.src;
- }
-