Secondary o7 chords (also ø7 and o6) function just like secondary dominants, only the secondary function (and thus the tonicization of the diatonic chord) is now created through the fully-diminished sound of the o7 chord (or half-diminished, or diminished triad in first inversion).
Spelling and writing them: given F: o7/ii, think: 1) ii is G. 2) Now write o7/ii on the note a half-step below G--it's built on F# (F# is the leading tone to G). 3) Write a o7 chord built on F# (remember that a o7 chord is stacked minor thirds): F# A C Eb is the chord.
Another example: D: ø65/V. 1) V is A. 2) ø7/V would be written on the note a half-step below A--it's built on G# (G# is the leading tone to A). 3) Write a ø7 chord built on G#: G# B D F# is the root position chord. 4) Since it's ø65/V, the B would be in the bass. So remember: They're built on the note a half-step below what they're "of".
Hearing them: By now, you're capable of hearing where chromatic chords occur. So, follow these steps: 1) determine where you hear chromatic chords; 2) determine whether they're major-minor (i.e. "plain old secondary dominants") or some other quality--especially fully- or half-diminished; 3) listen to where they resolve; 4) listen carefully to the bass motion to determine the inversion.
For example: you hear ??--ii. Identify the ii chord, then go back and determine that the secondary chord was fully diminished (i.e. it's o7/ii or some inversion thereof). Listen for the bass motion to determine the correct inversion. Memorize the following to help you:
o7/x: bass resolves up a half step (note the similarity to V65/x). o65/x: bass resolves down a whole step (similar to V43/x). o43/x: bass resolves down a half step if the chord of resolution is major; down a whole step if the chord of resolution is minor (note that this resolution is to a first-inversion chord; also note that this is identical to V42/x). o42/x: rare; bass resolves down a half step, and the resolution is to a second inversion (64) chord.
Some examples:
Click music to hear the examples.