home *** CD-ROM | disk | FTP | other *** search
- // Copyright (c) 1999,Y2K Maris Multimedia Ltd. http://www.maris.com/
- // Thank you for examining our code.
-
- var ns = false;
- var ie = false;
-
- if (document.layers)
- {
- ns = true;
- }
-
- if (document.all)
- {
- ie = true;
- }
-
- function imageObject(name,imageSrc)
- {
- this.name = name;
-
- this.Out = new Image();
- this.Over = new Image();
- this.Down = new Image();
-
- //alert(imageSrc);
- //if (imageSrc.indexOf("file:///")!=-1)
- //imageSrc = imageSrc.substring(8,imageSrc.length)
- //alert(imageSrc);
-
- this.Out.src = imageSrc + "out.gif";
- this.Over.src = imageSrc + "over.gif";
- this.Down.src = imageSrc + "down.gif";
-
- this.mOut = mOut;
- this.mOver = mOver;
- this.mDown = mDown;
- }
-
- function mOut()
- {
- eval("document."+this.name+".src="+this.name+"Image.Out.src;")
- }
-
- function mOver()
- {
- eval("document."+this.name+".src="+this.name+"Image.Over.src;")
- }
-
- function mDown()
- {
- eval("document."+this.name+".src="+this.name+"Image.Down.src;")
- }
-
- function imageObjectN(imageSrc)
- {
- this.imageObjectOut = new Image();
- this.imageObjectOver = new Image();
- this.imageObjectDown = new Image();
-
- this.imageObjectOut.src = imageSrc + "out.gif";
- this.imageObjectOver.src = imageSrc + "over.gif";
- this.imageObjectDown.src = imageSrc + "down.gif";
- }
-
- function imageObjectChange(imageName,imageObj,imageState)
- {
- eval("document."+imageName+".src="+imageObj+".imageObject"+imageState+".src;")
- }
-
-