An optical study of discontinuous metallic thin films has permitted us to observe simultaneously two resonant phenomena in media close to the percolation threshold. In addition to the well known metal grain resonance, a weaker resonance appears in the UV spectrum. This phenomenon, the presence of both resonances in a single sample, has seldom been pointed out. We demonstrate experimentally, on a silver percolating film, that this resonance is due to the presence of voids in the thin metal layer. We introduce a new model for the calculation of the optical properties of heterogeneous media, based on an entropic analysis of the actual medium, which accounts fairly well for both phenomena.