home *** CD-ROM | disk | FTP | other *** search
- //imageswap.js
- //functions to swap the src and lowsrc of an image
-
- function swapSrc(imageRef)
- {
- if ((imageRef) && (imageRef != null))
- {
- if (imageRef.lowsrc && imageRef.src);
- {
-
- var lsrc = imageRef.lowsrc;
- var src = imageRef.src;
-
- imageRef.lowsrc = src;
- imageRef.src = lsrc;
- }
- }
- }
-
- function replaceSrc(imageRef, newimg)
- {
- if ((imageRef) && (imageRef != null))
- {
- if ((newimg) && (newimg != null) && (newimg != ""));
- {
- imageRef.src = newimg;
- }
- }
- }
-