Stock markets prices affected more by long-term or short-term performance

Are stock markets prices affected more by long-term or short-term performance? Provide an example that supports the claim.