Last change
on this file since 14149 was 5503, checked in by sjboddie, 21 years ago |
* empty log message *
|
-
Property svn:keywords
set to
Author Date Id Revision
|
File size:
518 bytes
|
Line | |
---|
1 |
|
---|
2 | var loaded = new Array();
|
---|
3 | function gbutton (image, onimage) {
|
---|
4 | if (image && image.src && (image.out == null || typeof(image.out) == typeof(void(0)))) {
|
---|
5 | s = image.src;
|
---|
6 | image.out = new Image();
|
---|
7 | image.out.src = s;
|
---|
8 | image.over = new Image();
|
---|
9 | image.over.src = onimage;
|
---|
10 | loaded[image.name] = image;
|
---|
11 | }
|
---|
12 | }
|
---|
13 |
|
---|
14 | function roll (imagename, over) {
|
---|
15 | if (document.images) {
|
---|
16 | if (over) i = "over";
|
---|
17 | else i = "out";
|
---|
18 | image = loaded[imagename];
|
---|
19 | if (image) image.src = eval("image."+i+".src");
|
---|
20 | }
|
---|
21 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.