Virtual photons are not on the mass shell, that means that their mass can be different than zero in the calculations using the Feynman diagrams. They are not observable in any sense other than as the result of the calculations that need them. They appear because in an interaction quantum numbers are conserved, and these photons are used to carry the quantum number balance from the input particles to the output particles.
On mass shell photons have E=h*nu , and mass 0.
What does the frequency nu mean? It is the classical electromagnetic wave frequency that is built up by zillions of photons carrying a quantum of energy , and it was found experimentally that that quantum is equal to h*nu where h is the Planck constant and nu the frequency.
edit second time around:
The four vectors of the virtual photons in the Feynman diagrams are under an integration sign. That means that they will have variable four momentum vectors to the limits of integration
As there is no way to measure the energy of a virtual particle per se, or for an ensemble of them to compose a light beam , it has no meaning to ask whether it has a frequency.
The energy transferred by the individual molecules in your hand is very low , whereas the energies of visual light to which the glass is transparent are higher, so in any case there is no comparison. The real photons that will come from the pressure of your hand will be infrared photons.