Both applets have callback routines available that can be
accessed using JavaScript. For JSpecView, the X,Y coordinates of
the point clicked are returned. For Jmol, the ID of the atom
clicked is determined. These are then compared to information
stored in a small JavaScript array.
The effect is that the spectra appear "hot-linked" to the
molecular graphic display such that selecting a peak in the IR
spectrum will cause a vibrational mode animation to be loaded, or
selecting a peak in the NMR spectra will cause the appropriate H
or C atoms to be highlighted.