Those are typically done through Flash and Javascript. If you want to get rid of them client-side, stop Javascript from automatically scripting.
Some are ActiveX, but no browser should ever be used without ActiveX scripting set to Trusted Controls Only.