I'm not the original maker of X-Ray, I decompiled his mod and changed it for 1.3_01 and also removed the ModLoader requirement.
Copy all .class files into the minecraft.jar
Delete the META-INF folder
Press x in game to toggle X-Ray.
Source is included in the download.