By using variational methods directly, we establish the existence of periodic solutions for a class of nonautonomous differential delay equations which are superlinear both at zero and at infinity.