A door operator of an elevator, comprising: a door of an elevator, a position switch which is provided in the vicinity of a door of the elevator and in which two sets of phototransmitter / photoreceiver devices, each having a phototransmitter (14a, 14b) and a photoreceiver (15a, 15b), are arranged side by side in a vertical direction; a first intercepting body provided on the door of an elevator in such a manner as to intercept or reflect light from a lower side phototransmitter to a lower side photoreceiver when the door of the elevator has come to one of a fully closed condition and a fully open condition; and a second intercepting body provided on the door of the elevator in such a manner as to simultaneously intercept or reflect light from the lower side phototransmitter to the lower side photoreceiver and light from an upper side phototransmitter to an upper side photoreceiver when the door of the elevator has come to the other of the fully closed condition and the fully open condition; characterized in that the second intercepting body has: a first intercepting portion which is formed in such a manner as to intercept or reflect light from the lower side phototransmitter to the lower side photoreceiver when the door of the elevator has come to the other of the fully closed condition and the fully open condition; and a second intercepting portion which is formed to be wider than the first intercepting portion in an opening and closing direction of the door of the elevator in such a manner as to intercept or reflect light from the upper side phototransmitter to the upper side photoreceiver while the first intercepting portion is intercepting or reflecting light from the lower side phototransmitter to the lower side photoreceiver. a door of an elevator, a position switch which is provided in the vicinity of a door of the elevator and in which two sets of phototransmitter / photoreceiver devices, each having a phototransmitter (14a, 14b) and a photoreceiver (15a, 15b), are arranged side by side in a vertical direction; a first intercepting body provided on the door of an elevator in such a manner as to intercept or reflect light from a lower side phototransmitter to a lower side photoreceiver when the door of the elevator has come to one of a fully closed condition and a fully open condition; and a second intercepting body provided on the door of the elevator in such a manner as to simultaneously intercept or reflect light from the lower side phototransmitter to the lower side photoreceiver and light from an upper side phototransmitter to an upper side photoreceiver when the door of the elevator has come to the other of the fully closed condition and the fully open condition; a first intercepting portion which is formed in such a manner as to intercept or reflect light from the lower side phototransmitter to the lower side photoreceiver when the door of the elevator has come to the other of the fully closed condition and the fully open condition; and a second intercepting portion which is formed to be wider than the first intercepting portion in an opening and closing direction of the door of the elevator in such a manner as to intercept or reflect light from the upper side phototransmitter to the upper side photoreceiver while the first intercepting portion is intercepting or reflecting light from the lower side phototransmitter to the lower side photoreceiver.