'Off and on' and option (3) 'on and off' both mean 'occasionally and not continuously'. Hence, the given sentence is correct.
Of and off have different meanings and are to be used appropriately according to the situation. Of is usually used to show belongingness.
Example:
1) John ran off quickly to catch the bus.
2) A story of cats.