home *** CD-ROM | disk | FTP | other *** search
- // -- Code Author : Daniel Walters. --
-
- function Preload(up, dn)
- {
- this.up = new Image();
- this.up.src = dir + up;
- this.dn = new Image();
- this.dn.src = dir + 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;
- }
-
- theimage = new Preload();
-
- theimage['i1_0'] = new Preload("images/1-0_up.gif", "images/1-0_dn.gif");
- theimage['i2_0'] = new Preload("images/2-0_up.gif", "images/2-0_dn.gif");
- theimage['i3_0'] = new Preload("images/3-0_up.gif","images/3-0_dn.gif");
- theimage['i4_0'] = new Preload("images/4-0_up.gif","images/4-0_dn.gif");
- theimage['i5_0'] = new Preload("images/5-0_up.gif", "images/5-0_dn.gif");
- theimage['i6_0'] = new Preload("images/6-0_up.gif", "images/6-0_dn.gif");
- theimage['i7_0'] = new Preload("images/7-0_up.gif", "images/7-0_dn.gif");
- theimage['i8_0'] = new Preload("images/8-0_up.gif", "images/8-0_dn.gif");
- theimage['i9_0'] = new Preload("images/9-0_up.gif", "images/9-0_dn.gif");
- theimage['i10_0'] = new Preload("images/10-0_up.gif", "images/10-0_dn.gif");