The movement and radiation of fast electrons emitting along the surface of a target irradiated by intense laser pulses has been investigated theoretically and numerically by use of the classical theory of Thomson scattering by free electrons in static field. The results indicate that the surface electrons are oscillating in the quasistatic field and the laser field at the beginning. The electrons will be accelerated when their oscillation frequency comes close to the laser frequency, and the attosecond pulse trains and high harmonic are emitted along the surface by surface electrons. The temporal and spatial characteristics of the acceleration and radiation of electrons in different initial states has been compared. The frequency characteristic of the coherent radiation of electron beams are also investigated.